summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h')
-rw-r--r--Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h15
1 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h b/Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h
new file mode 100644
index 00000000000..f9b694650b1
--- /dev/null
+++ b/Build/source/libs/xpdf/xpdf-PATCHES/patch-30-include-strings_h
@@ -0,0 +1,15 @@
+ The Posix manpage says strcasecmp() is declared in <strings.h>
+ and this indeed required for AIX 4.3 and xlc.
+
+diff -ur -N xpdf-3.04.orig/xpdf/GlobalParams.cc xpdf-3.04/xpdf/GlobalParams.cc
+--- xpdf-3.04.orig/xpdf/GlobalParams.cc 2014-05-30 19:29:23.000000000 +0200
++++ xpdf-3.04/xpdf/GlobalParams.cc 2014-05-30 19:47:44.000000000 +0200
+@@ -54,6 +54,8 @@
+ #ifdef _WIN32
+ # define strcasecmp stricmp
+ # define strncasecmp strnicmp
++#else
++# include <strings.h>
+ #endif
+
+ #if MULTITHREADED