Prechádzať zdrojové kódy

fix CLOCK_REALTIME definitions.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1324 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong 14 rokov pred
rodič
commit
107dc2378a
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      components/pthreads/pthread.h

+ 2 - 0
components/pthreads/pthread.h

@@ -262,7 +262,9 @@ struct sigevent {
 #define MICROSECOND_PER_TICK	(MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND)
 #define MICROSECOND_PER_TICK	(MICROSECOND_PER_SECOND / RT_TICK_PER_SECOND)
 #define NANOSECOND_PER_TICK		(NANOSECOND_PER_SECOND  / RT_TICK_PER_SECOND)
 #define NANOSECOND_PER_TICK		(NANOSECOND_PER_SECOND  / RT_TICK_PER_SECOND)
 
 
+#ifndef CLOCK_REALTIME
 #define CLOCK_REALTIME      0
 #define CLOCK_REALTIME      0
+#endif
 
 
 int clock_getres  (clockid_t clockid, struct timespec *res);
 int clock_getres  (clockid_t clockid, struct timespec *res);
 int clock_gettime (clockid_t clockid, struct timespec *tp);
 int clock_gettime (clockid_t clockid, struct timespec *tp);