diff --git a/tools/osx/ios-depends/gettext/Makefile b/tools/osx/ios-depends/gettext/Makefile index ad405e697056b..665029c4d513a 100644 --- a/tools/osx/ios-depends/gettext/Makefile +++ b/tools/osx/ios-depends/gettext/Makefile @@ -39,7 +39,9 @@ $(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 + if [ "$(platform_sdk_version)" != "4.2" ]; then \ + cd $(SOURCE); patch -p1 <../02-gettext-tools-stpncpy.patch; \ + fi cd $(SOURCE); $(CONFIGURE) $(LIBDYLIB): $(SOURCE)