From 981501cf1e19d07a11e28cff99b9cd7c7b1d0b1d Mon Sep 17 00:00:00 2001 From: GDR! Date: Thu, 17 Sep 2015 10:30:57 +0200 Subject: Fix build on non-mac platforms --- mach.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mach.c b/mach.c index 35ac3a9..a9095f6 100644 --- a/mach.c +++ b/mach.c @@ -1,3 +1,4 @@ +#ifdef __MACH__ #include "mach.h" /* there is no clock_gettime on MacOS platform */ @@ -18,3 +19,4 @@ int clock_gettime(int clk_id, struct timespec *t) return 0; } +#endif -- cgit v1.2.3