summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/time.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-12 12:08:14 +0800
committerMeco Man <[email protected]>2021-02-12 12:08:14 +0800
commitac500f35d6a4517243e5a290e8a97b3a6c6bf3c1 (patch)
treed758072ae6b716d7718b4b9be637e50d146b70ec /components/libc/compilers/common/time.c
parente33e7822d7a7aaa027e511f59c5533664a02f31e (diff)
change RT_USING_PTHREADS to RT_USING_POSIX
Diffstat (limited to 'components/libc/compilers/common/time.c')
-rw-r--r--components/libc/compilers/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index d7048acc4a..c73bb0f26c 100644
--- a/components/libc/compilers/common/time.c
+++ b/components/libc/compilers/common/time.c
@@ -372,7 +372,7 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz)
}
RTM_EXPORT(settimeofday);
-#ifdef RT_USING_PTHREADS
+#ifdef RT_USING_POSIX
static struct timeval _timevalue;
static int clock_time_system_init()
{
@@ -512,4 +512,4 @@ int clock_settime(clockid_t clockid, const struct timespec *tp)
return 0;
}
RTM_EXPORT(clock_settime);
-#endif /*RT_USING_PTHREADS*/
+#endif /* RT_USING_POSIX */