adjust definition of compat clock_gettime
This commit is contained in:
parent
70e6be3d6e
commit
4b2a8cd1c1
@ -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;
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user