aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/time.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index c18ec49..efa7655 100644
--- a/src/time.c
+++ b/src/time.c
@@ -22,7 +22,11 @@
22#define MAC_OS_X_VERSION_10_12 101200 22#define MAC_OS_X_VERSION_10_12 101200
23#endif 23#endif
24 24
25#define HAVE_CLOCK_GETTIME (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC)) 25#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 || defined(CLOCK_MONOTONIC))
26#define HAVE_CLOCK_GETTIME 1
27#else
28#define HAVE_CLOCK_GETTIME 0
29#endif
26 30
27#if !(HAVE_CLOCK_GETTIME) 31#if !(HAVE_CLOCK_GETTIME)
28#include "time_osx.h" 32#include "time_osx.h"