From f8df150e2990756247e462ba75ea88328d705ead Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 9 Dec 2016 22:39:36 +0530 Subject: [PATCH] check: Fix macro check for OS X TARGET_OS_MAC is defined on all Apple platforms. You need to check for !TARGET_OS_IPHONE to detect OS X (now called macOS). --- libs/gst/check/libcheck/libcompat/clock_gettime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/check/libcheck/libcompat/clock_gettime.c b/libs/gst/check/libcheck/libcompat/clock_gettime.c index 11e8f91ee8..51cfd8f9bf 100644 --- a/libs/gst/check/libcheck/libcompat/clock_gettime.c +++ b/libs/gst/check/libcheck/libcompat/clock_gettime.c @@ -25,7 +25,8 @@ #include #include #include -# if TARGET_OS_MAC +/* CoreServices.h is only available on macOS */ +# if TARGET_OS_MAC && !TARGET_OS_IPHONE # include # endif #include