diff options
| author | bernard.xiong <[email protected]> | 2011-03-10 06:39:58 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-03-10 06:39:58 +0000 |
| commit | 107dc2378aac8d4a56b2c1c7356124dee768f9af (patch) | |
| tree | e7fca22e6d6b3eec75b6639c0fec008b958bc635 /components | |
| parent | 4a0e072cc59792c44404910d912e16958b74ba60 (diff) | |
fix CLOCK_REALTIME definitions.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1324 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/pthreads/pthread.h | 2 |
1 files changed, 2 insertions, 0 deletions
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);
|
