summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZopolis4 <creatorsmithmdt@gmail.com>2022-09-23 22:15:40 +1000
committerMichael Drake <michael.drake@codethink.co.uk>2022-10-06 15:08:27 +0100
commit3a4714779a55f7d099cecddb12354e6e49a8fe14 (patch)
tree557fcb120f229654d3bd44537437f21a266baecc
parent73215930a3f45735ddc31b439111e575d73ab6f3 (diff)
downloadlibnsutils-master.tar.gz
libnsutils-master.tar.bz2
Restrict overmatching MACH ifdef to only trigger on OSX and MachHEADmaster
-rw-r--r--src/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c
index 69da504..34519a1 100644
--- a/src/time.c
+++ b/src/time.c
@@ -20,7 +20,7 @@
#include <time.h>
#elif defined(__riscos)
#include <oslib/os.h>
-#elif defined(__MACH__)
+#elif defined(__MACH__) && defined(__APPLE__)
#include <mach/mach.h>
#include <mach/clock.h>
#include <mach/mach_time.h>
@@ -51,7 +51,7 @@ nsuerror nsu_getmonotonic_ms(uint64_t *current_out)
time = os_read_monotonic_time();
current = time * 10;
-#elif defined(__MACH__)
+#elif defined(__MACH__) && defined(__APPLE__)
clock_serv_t cclock;
mach_timespec_t mts;