adjust definition of compat clock_gettime

This commit is contained in:
Brent Cook 2018-03-23 11:10:16 -05:00
parent 70e6be3d6e
commit 4b2a8cd1c1
2 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,7 @@
#define ORWL_GIGA UINT64_C(1000000000) #define ORWL_GIGA UINT64_C(1000000000)
int int
clock_gettime(clock_id_t clock_id, struct timespec *tp) clock_gettime(int clock_id, struct timespec *tp)
{ {
static double orwl_timebase = 0.0; static double orwl_timebase = 0.0;
static uint64_t orwl_timestart = 0; static uint64_t orwl_timestart = 0;

View File

@ -30,11 +30,8 @@ time_t timegm(struct tm *tm);
#define CLOCK_REALTIME 0 #define CLOCK_REALTIME 0
#endif #endif
#ifndef _WIN32
#ifndef HAVE_CLOCK_GETTIME #ifndef HAVE_CLOCK_GETTIME
int int clock_gettime(int clock_id, struct timespec *tp);
clock_gettime(clockid_t clock_id, struct timespec *tp);
#endif
#endif #endif
#ifndef timespecsub #ifndef timespecsub