summaryrefslogtreecommitdiff
path: root/recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch')
-rw-r--r--recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch b/recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch
new file mode 100644
index 00000000..bee276c9
--- /dev/null
+++ b/recipes/glib/0014-Don-t-use-AT_FDCWD-on-iOS-for-now.patch
@@ -0,0 +1,36 @@
+From 5e1f1f1f7f5624debe6dc8ebdb155042d20fbc91 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
+Date: Fri, 9 Jan 2015 10:36:27 +0100
+Subject: [PATCH] Don't use AT_FDCWD on iOS for now
+
+https://bugzilla.gnome.org/show_bug.cgi?id=742097
+---
+ gio/glocalfile.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/gio/glocalfile.c b/gio/glocalfile.c
+index 846eedb..42bd557 100644
+--- a/gio/glocalfile.c
++++ b/gio/glocalfile.c
+@@ -87,6 +87,18 @@
+ #endif
+ #endif
+
++#ifdef __APPLE__
++#include <TargetConditionals.h>
++
++/* AT_FDCWD is available since XCode 6.1 and cause linking failures
++ * when linking an application later with older XCode versions
++ */
++#if defined(TARGET_OS_IPHONE) && defined(AT_FDCWD)
++#undef AT_FDCWD
++#endif
++
++#endif
++
+
+ static void g_local_file_file_iface_init (GFileIface *iface);
+
+--
+2.1.4
+