diff options
| author | Meco Man <[email protected]> | 2021-11-08 02:07:07 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-08 10:52:37 -0500 |
| commit | 1adcc181aa1e07925249562bc25372ede018ce54 (patch) | |
| tree | 18be82c0f2e003691449d0950e6a16e5829d9fcd /components/libc | |
| parent | f8388c572ef9969105b895cba3c55ba8d24efeda (diff) | |
add delay.c as default
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/posix/src/SConscript | 5 | ||||
| -rw-r--r-- | components/libc/posix/src/delay.c | 1 | ||||
| -rw-r--r-- | components/libc/posix/src/unistd.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/components/libc/posix/src/SConscript b/components/libc/posix/src/SConscript index 24c4ede4e1..b4454f6a52 100644 --- a/components/libc/posix/src/SConscript +++ b/components/libc/posix/src/SConscript @@ -2,7 +2,7 @@ from building import * -src = ['unistd.c'] +src = ['unistd.c', 'delay.c'] cwd = GetCurrentDir() CPPPATH = [cwd] @@ -15,9 +15,6 @@ if GetDepend('RT_USING_POSIX_POLL'): if GetDepend('RT_USING_POSIX_SELECT'): src += ['select.c'] -if GetDepend('RT_USING_POSIX_DELAY'): - src += ['delay.c'] - group = DefineGroup('POSIX', src, depend = ['RT_USING_POSIX'], CPPPATH = CPPPATH) Return('group') diff --git a/components/libc/posix/src/delay.c b/components/libc/posix/src/delay.c index 3842eb0aa8..c8564dc54e 100644 --- a/components/libc/posix/src/delay.c +++ b/components/libc/posix/src/delay.c @@ -7,6 +7,7 @@ * Date Author Notes * 2021-05-07 Meco Man first Version */ +#include <sys/types.h> #include <rtthread.h> #include <rthw.h> #define DBG_TAG "POSIX.delay" diff --git a/components/libc/posix/src/unistd.c b/components/libc/posix/src/unistd.c index 6527994c93..85235965ea 100644 --- a/components/libc/posix/src/unistd.c +++ b/components/libc/posix/src/unistd.c @@ -13,7 +13,6 @@ #include <dfs_private.h> #include <sys/errno.h> #include <unistd.h> -#include <delay.h> /** * this function is a POSIX compliant version, which will open a file and |
