summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2017-09-27 13:07:25 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2017-09-27 13:56:15 +0200
commit49e230ad1a451f62a4358bdd9af057ab6afa2ec8 (patch)
tree4d9830bb604042aa243af7cb83003020d8f948ad
parentc9815957d3a3f5c6253955e246422a8a6206f065 (diff)
gst: Do not try to determine executable path on iOS.
The method used relies on "libproc.h", which is only available on OSX. https://bugzilla.gnome.org/show_bug.cgi?id=788234
-rw-r--r--gst/gst.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/gst.c b/gst/gst.c
index c6747080c..a67582fa6 100644
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -107,9 +107,11 @@
#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 */
@@ -345,7 +347,7 @@ find_executable_path (void)
_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)
{