diff --git a/src/utils.c b/src/utils.c index 7db96e7..2f48559 100644 --- a/src/utils.c +++ b/src/utils.c @@ -27,7 +27,7 @@ #include #include -#ifdef __MACH__ +#if defined(__MACH__) && defined(__APPLE__) #include #include #endif @@ -117,7 +117,7 @@ int timestamp_is_negative(timestamp_t *ts) void update_timestamp(timestamp_t *dst) { -#ifdef __MACH__ +#if defined(__MACH__) && defined(__APPLE__) clock_serv_t cclock; mach_timespec_t tp;