summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2015-09-17 10:30:57 +0200
committerGDR! <gdr@gdr.name>2015-09-17 10:30:57 +0200
commit981501cf1e19d07a11e28cff99b9cd7c7b1d0b1d (patch)
tree715a20888d167bce7aa1c151a7de70339bff1051
parentba90921d46f3bfffbb87f4b271ba0276b113dc2f (diff)
Fix build on non-mac platforms
-rw-r--r--mach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mach.c b/mach.c
index 35ac3a9..a9095f6 100644
--- a/mach.c
+++ b/mach.c
@@ -1,3 +1,4 @@
1#ifdef __MACH__
1#include "mach.h" 2#include "mach.h"
2 3
3/* there is no clock_gettime on MacOS platform */ 4/* there is no clock_gettime on MacOS platform */
@@ -18,3 +19,4 @@ int clock_gettime(int clk_id, struct timespec *t)
18 19
19 return 0; 20 return 0;
20} 21}
22#endif