From 4b2a8cd1c16896ca5d4570656435aa1b69bcbd46 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Fri, 23 Mar 2018 11:10:16 -0500 Subject: adjust definition of compat clock_gettime --- apps/openssl/compat/clock_gettime_osx.c | 2 +- include/compat/time.h | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/openssl/compat/clock_gettime_osx.c b/apps/openssl/compat/clock_gettime_osx.c index e0a5f59..bb385e4 100644 --- a/apps/openssl/compat/clock_gettime_osx.c +++ b/apps/openssl/compat/clock_gettime_osx.c @@ -5,7 +5,7 @@ #define ORWL_GIGA UINT64_C(1000000000) 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 uint64_t orwl_timestart = 0; diff --git a/include/compat/time.h b/include/compat/time.h index 117a441..fb0ab29 100644 --- a/include/compat/time.h +++ b/include/compat/time.h @@ -30,11 +30,8 @@ time_t timegm(struct tm *tm); #define CLOCK_REALTIME 0 #endif -#ifndef _WIN32 #ifndef HAVE_CLOCK_GETTIME -int -clock_gettime(clockid_t clock_id, struct timespec *tp); -#endif +int clock_gettime(int clock_id, struct timespec *tp); #endif #ifndef timespecsub -- cgit v1.2.3-55-g6feb