diff options
author | Brent Cook <busterb@gmail.com> | 2018-11-16 05:05:15 -0600 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2018-11-16 10:36:43 -0600 |
commit | 4842b6964d1cd3c5cb1495807212b95d11535540 (patch) | |
tree | b7c3288c70512aba7f74e449ee50db8ad3e0de69 | |
parent | 3dfd6063ea8fb8788e418b2335ab113cee352062 (diff) | |
download | portable-4842b6964d1cd3c5cb1495807212b95d11535540.tar.gz portable-4842b6964d1cd3c5cb1495807212b95d11535540.tar.bz2 portable-4842b6964d1cd3c5cb1495807212b95d11535540.zip |
hide clock_gettime definition on WIN32
-rw-r--r-- | include/compat/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index dc460ef..ccedba3 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
@@ -33,6 +33,7 @@ time_t timegm(struct tm *tm); | |||
33 | #define CLOCK_REALTIME 0 | 33 | #define CLOCK_REALTIME 0 |
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | #ifndef _WIN32 | ||
36 | #ifndef HAVE_CLOCK_GETTIME | 37 | #ifndef HAVE_CLOCK_GETTIME |
37 | typedef int clockid_t; | 38 | typedef int clockid_t; |
38 | int clock_gettime(clockid_t clock_id, struct timespec *tp); | 39 | int clock_gettime(clockid_t clock_id, struct timespec *tp); |
@@ -49,5 +50,6 @@ int clock_gettime(clockid_t clock_id, struct timespec *tp); | |||
49 | } \ | 50 | } \ |
50 | } while (0) | 51 | } while (0) |
51 | #endif | 52 | #endif |
53 | #endif | ||
52 | 54 | ||
53 | #endif | 55 | #endif |