From 107dc2378aac8d4a56b2c1c7356124dee768f9af Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Thu, 10 Mar 2011 06:39:58 +0000 Subject: [PATCH] fix CLOCK_REALTIME definitions. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1324 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/pthreads/pthread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/pthreads/pthread.h b/components/pthreads/pthread.h index 30a1cbc4fd..58a1bb7423 100644 --- a/components/pthreads/pthread.h +++ b/components/pthreads/pthread.h @@ -262,7 +262,9 @@ struct sigevent { #define MICROSECOND_PER_TICK (MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND) #define NANOSECOND_PER_TICK (NANOSECOND_PER_SECOND / RT_TICK_PER_SECOND) +#ifndef CLOCK_REALTIME #define CLOCK_REALTIME 0 +#endif int clock_getres (clockid_t clockid, struct timespec *res); int clock_gettime (clockid_t clockid, struct timespec *tp);