aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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