check: Fix macro check for OS X
[platform/upstream/gstreamer.git] / libs / gst / check / libcheck / libcompat / clock_gettime.c
index 11e8f91..51cfd8f 100644 (file)
@@ -25,7 +25,8 @@
 #include <mach/mach.h>
 #include <mach/mach_time.h>
 #include <TargetConditionals.h>
-# if TARGET_OS_MAC
+/* CoreServices.h is only available on macOS */
+# if TARGET_OS_MAC && !TARGET_OS_IPHONE
 #  include <CoreServices/CoreServices.h>
 # endif
 #include <unistd.h>