aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/openssl/compat/clock_gettime_osx.c2
-rw-r--r--include/compat/time.h5
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 @@
5#define ORWL_GIGA UINT64_C(1000000000) 5#define ORWL_GIGA UINT64_C(1000000000)
6 6
7int 7int
8clock_gettime(clock_id_t clock_id, struct timespec *tp) 8clock_gettime(int clock_id, struct timespec *tp)
9{ 9{
10 static double orwl_timebase = 0.0; 10 static double orwl_timebase = 0.0;
11 static uint64_t orwl_timestart = 0; 11 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);
30#define CLOCK_REALTIME 0 30#define CLOCK_REALTIME 0
31#endif 31#endif
32 32
33#ifndef _WIN32
34#ifndef HAVE_CLOCK_GETTIME 33#ifndef HAVE_CLOCK_GETTIME
35int 34int clock_gettime(int clock_id, struct timespec *tp);
36clock_gettime(clockid_t clock_id, struct timespec *tp);
37#endif
38#endif 35#endif
39 36
40#ifndef timespecsub 37#ifndef timespecsub