aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2018-11-16 05:05:15 -0600
committerBrent Cook <bcook@openbsd.org>2018-11-16 10:36:43 -0600
commit4842b6964d1cd3c5cb1495807212b95d11535540 (patch)
treeb7c3288c70512aba7f74e449ee50db8ad3e0de69
parent3dfd6063ea8fb8788e418b2335ab113cee352062 (diff)
downloadportable-4842b6964d1cd3c5cb1495807212b95d11535540.tar.gz
portable-4842b6964d1cd3c5cb1495807212b95d11535540.tar.bz2
portable-4842b6964d1cd3c5cb1495807212b95d11535540.zip
hide clock_gettime definition on WIN32
-rw-r--r--include/compat/time.h2
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
37typedef int clockid_t; 38typedef int clockid_t;
38int clock_gettime(clockid_t clock_id, struct timespec *tp); 39int 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