aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorS. Davilla <davilla@4pi.com>2011-04-17 22:32:59 -0400
committerS. Davilla <davilla@4pi.com>2011-04-17 22:32:59 -0400
commitcad735b131a093a176d60403779de4381ffbbaba (patch)
tree609c9d5c767f60e515edd6cd5f70b304094c3155 /tools
parent52e7dc99a7cbd507a5f751364c25b0ad0ecc5bb0 (diff)
[iosx] fixed depends build breakage under 4.3sdk
Diffstat (limited to 'tools')
-rw-r--r--tools/osx/ios-depends/gettext/02-gettext-tools-stpncpy.patch12
-rw-r--r--tools/osx/ios-depends/gettext/Makefile1
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/osx/ios-depends/gettext/02-gettext-tools-stpncpy.patch b/tools/osx/ios-depends/gettext/02-gettext-tools-stpncpy.patch
new file mode 100644
index 0000000000..cc01d2f0d4
--- /dev/null
+++ b/tools/osx/ios-depends/gettext/02-gettext-tools-stpncpy.patch
@@ -0,0 +1,12 @@
+diff -ur gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c
+--- gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c 2007-10-07 23:29:35.000000000 +0300
++++ gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c 2011-03-11 23:34:40.000000000 +0200
+@@ -24,7 +24,7 @@
+ #include <string.h>
+
+ #ifndef weak_alias
+-# define __stpncpy stpncpy
++//# define __stpncpy stpncpy
+ #endif
+
+ /* Copy no more than N bytes of SRC to DST, returning a pointer past the
diff --git a/tools/osx/ios-depends/gettext/Makefile b/tools/osx/ios-depends/gettext/Makefile
index 61f6f1364c..ad405e6970 100644
--- a/tools/osx/ios-depends/gettext/Makefile
+++ b/tools/osx/ios-depends/gettext/Makefile
@@ -39,6 +39,7 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
echo $(SOURCE) > .gitignore
cd $(SOURCE); patch -p0 <../01-gettext-tools-Makefile.in.patch
+ cd $(SOURCE); patch -p0 <../02-gettext-tools-stpncpy.patch
cd $(SOURCE); $(CONFIGURE)
$(LIBDYLIB): $(SOURCE)