diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-01-20 13:29:51 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-01-20 13:29:53 +0300 |
commit | 3b6181b63d80e77c04a52d7439a87850eea1fe78 (patch) | |
tree | 0b0f9b3ea188c6a24e58aeae1e3bfc144b044054 /utils.c | |
parent | 7f671b1e68a6664b5baf3e3cffc1bb0880984267 (diff) |
utils: fix build on Mac OS X 10.12
clock_gettime and CLOCK_MONOTONIC are supported now
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ void *__calloc_a(size_t len, ...) return ret; } -#ifdef __APPLE__ +#ifdef LIBUBOX_COMPAT_CLOCK_GETTIME #include <mach/mach_host.h> /* host_get_clock_service() */ #include <mach/mach_port.h> /* mach_port_deallocate() */ #include <mach/mach_init.h> /* mach_host_self(), mach_task_self() */ |