diff options
author | Brent Cook <busterb@gmail.com> | 2018-03-23 11:10:16 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2018-03-23 11:10:16 -0500 |
commit | 4b2a8cd1c16896ca5d4570656435aa1b69bcbd46 (patch) | |
tree | 333472442bd483e9a391bf252a29f36cde87290c | |
parent | 70e6be3d6e82cbdc7a8ca5e9f2a1e0d95ece17c2 (diff) | |
download | portable-4b2a8cd1c16896ca5d4570656435aa1b69bcbd46.tar.gz portable-4b2a8cd1c16896ca5d4570656435aa1b69bcbd46.tar.bz2 portable-4b2a8cd1c16896ca5d4570656435aa1b69bcbd46.zip |
adjust definition of compat clock_gettime
-rw-r--r-- | apps/openssl/compat/clock_gettime_osx.c | 2 | ||||
-rw-r--r-- | 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 @@ | |||
5 | #define ORWL_GIGA UINT64_C(1000000000) | 5 | #define ORWL_GIGA UINT64_C(1000000000) |
6 | 6 | ||
7 | int | 7 | int |
8 | clock_gettime(clock_id_t clock_id, struct timespec *tp) | 8 | clock_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 |
35 | int | 34 | int clock_gettime(int clock_id, struct timespec *tp); |
36 | clock_gettime(clockid_t clock_id, struct timespec *tp); | ||
37 | #endif | ||
38 | #endif | 35 | #endif |
39 | 36 | ||
40 | #ifndef timespecsub | 37 | #ifndef timespecsub |