The method used relies on "libproc.h", which is only available
on OSX.
https://bugzilla.gnome.org/show_bug.cgi?id=788234
#include <windows.h> /* GetStdHandle, windows console */
#endif
#if defined (__APPLE__)
-#include <errno.h>
+#include "TargetConditionals.h"
+#if !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED
#include <libproc.h> /* proc_pidpath, PROC_PIDPATHINFO_MAXSIZE */
#endif
+#endif
#include "gst-i18n-lib.h"
#include <locale.h> /* for LC_ALL */
_gst_executable_path = g_strdup (buffer);
}
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) && !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR && !TARGET_OS_EMBEDDED
static void
find_executable_path (void)
{