--- gst/gst.c.orig 2019-02-24 15:47:37.000000000 -0800 +++ gst/gst.c 2019-02-24 15:50:52.000000000 -0800 @@ -106,9 +106,9 @@ #define WIN32_LEAN_AND_MEAN /* prevents from including too many things */ #include /* GetStdHandle, windows console */ #endif -#if defined (__APPLE__) +#if defined (__APPLE__) #include "TargetConditionals.h" -#if !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED +#if !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050) #include /* proc_pidpath, PROC_PIDPATHINFO_MAXSIZE */ #endif #endif @@ -343,7 +343,7 @@ _gst_executable_path = g_strdup (buffer); } -#elif defined(__APPLE__) && !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED +#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050) && !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED static void find_executable_path (void) {