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 05:17:37 -0600
commit4f1c9507b6c434f2e85ae8de49dea09e8fa97c78 (patch)
tree7b2ad14820e80947bc54dbc8d5ef4a4b1546ac45
parent0829e7f654e321c16d1f82b769f3c2299b160cb8 (diff)
downloadportable-4f1c9507b6c434f2e85ae8de49dea09e8fa97c78.tar.gz
portable-4f1c9507b6c434f2e85ae8de49dea09e8fa97c78.tar.bz2
portable-4f1c9507b6c434f2e85ae8de49dea09e8fa97c78.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