diff --git a/components/libc/compilers/common/sys/time.h b/components/libc/compilers/common/sys/time.h index 4c522a524a..6e74b901e5 100644 --- a/components/libc/compilers/common/sys/time.h +++ b/components/libc/compilers/common/sys/time.h @@ -54,7 +54,7 @@ time_t timegm(struct tm * const t); int gettimeofday(struct timeval *tv, struct timezone *tz); int settimeofday(const struct timeval *tv, const struct timezone *tz); -#ifdef RT_USING_PTHREADS +#ifdef RT_USING_POSIX #include /* posix clock and timer */ #define MILLISECOND_PER_SECOND 1000UL @@ -85,7 +85,7 @@ int settimeofday(const struct timeval *tv, const struct timezone *tz); int clock_getres (clockid_t clockid, struct timespec *res); int clock_gettime (clockid_t clockid, struct timespec *tp); int clock_settime (clockid_t clockid, const struct timespec *tp); -#endif /*RT_USING_PTHREADS*/ +#endif /* RT_USING_POSIX */ #ifdef __cplusplus } 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 */