diff options
author | Zopolis4 <creatorsmithmdt@gmail.com> | 2022-09-23 22:15:40 +1000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2022-10-06 15:08:27 +0100 |
commit | 3a4714779a55f7d099cecddb12354e6e49a8fe14 (patch) | |
tree | 557fcb120f229654d3bd44537437f21a266baecc /src | |
parent | 73215930a3f45735ddc31b439111e575d73ab6f3 (diff) | |
download | libnsutils-3a4714779a55f7d099cecddb12354e6e49a8fe14.tar.gz libnsutils-3a4714779a55f7d099cecddb12354e6e49a8fe14.tar.bz2 |
Restrict overmatching MACH ifdef to only trigger on OSX and Mach
Diffstat (limited to 'src')
-rw-r--r-- | src/time.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |