aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)