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:49 -0600
commit7ea897967790c9e0c84583fb2c19c60fb74ed295 (patch)
treeb7005039b79e72e30b70c0ec9d94fb726bd64e75
parenta20212a151d823fd8565df83fa559cacefaacae5 (diff)
downloadportable-7ea897967790c9e0c84583fb2c19c60fb74ed295.tar.gz
portable-7ea897967790c9e0c84583fb2c19c60fb74ed295.tar.bz2
portable-7ea897967790c9e0c84583fb2c19c60fb74ed295.zip
hide clock_gettime definition on WIN32
Diffstat (limited to '')
-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