From 3b6181b63d80e77c04a52d7439a87850eea1fe78 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 20 Jan 2017 11:29:51 +0100 Subject: utils: fix build on Mac OS X 10.12 clock_gettime and CLOCK_MONOTONIC are supported now Signed-off-by: Felix Fietkau --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index e59002e..5d9d5aa 100644 --- a/utils.c +++ b/utils.c @@ -56,7 +56,7 @@ void *__calloc_a(size_t len, ...) return ret; } -#ifdef __APPLE__ +#ifdef LIBUBOX_COMPAT_CLOCK_GETTIME #include /* host_get_clock_service() */ #include /* mach_port_deallocate() */ #include /* mach_host_self(), mach_task_self() */ -- cgit v1.2.3