Changeset 745 for trunk/server/lib/replace/system/time.h
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/replace/system/time.h
r414 r745 47 47 #endif 48 48 49 #ifndef HAVE_STRUCT_TIMESPEC 50 struct timespec { 51 time_t tv_sec; /* Seconds. */ 52 long tv_nsec; /* Nanoseconds. */ 53 }; 54 #endif 55 49 56 #ifndef HAVE_MKTIME 50 57 /* define is in "replace.h" */ … … 67 74 #endif 68 75 76 #ifndef HAVE_CLOCK_GETTIME 77 /* CLOCK_REALTIME is required by POSIX */ 78 #define CLOCK_REALTIME 0 79 typedef int clockid_t; 80 int rep_clock_gettime(clockid_t clk_id, struct timespec *tp); 69 81 #endif 82 /* make sure we have a best effort CUSTOM_CLOCK_MONOTONIC we can rely on */ 83 #if defined(CLOCK_MONOTONIC) 84 #define CUSTOM_CLOCK_MONOTONIC CLOCK_MONOTONIC 85 #elif defined(CLOCK_HIGHRES) 86 #define CUSTOM_CLOCK_MONOTONIC CLOCK_HIGHRES 87 #else 88 #define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME 89 #endif 90 91 #endif
Note:
See TracChangeset
for help on using the changeset viewer.