diff options
author | GDR! <gdr@gdr.name> | 2015-09-17 10:30:57 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2015-09-17 10:30:57 +0200 |
commit | 981501cf1e19d07a11e28cff99b9cd7c7b1d0b1d (patch) | |
tree | 715a20888d167bce7aa1c151a7de70339bff1051 | |
parent | ba90921d46f3bfffbb87f4b271ba0276b113dc2f (diff) |
Fix build on non-mac platforms
-rw-r--r-- | mach.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 | ||