summaryrefslogtreecommitdiff
path: root/package/libpng/remove-setjmp-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/libpng/remove-setjmp-error.patch')
-rw-r--r--package/libpng/remove-setjmp-error.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/libpng/remove-setjmp-error.patch b/package/libpng/remove-setjmp-error.patch
new file mode 100644
index 000000000..19df516d2
--- /dev/null
+++ b/package/libpng/remove-setjmp-error.patch
@@ -0,0 +1,17 @@
+diff -ur libpng-1.2.16/pngconf.h libpng-1.2.16-patched/pngconf.h
+--- libpng-1.2.16/pngconf.h 2007-01-31 07:22:33.000000000 -0600
++++ libpng-1.2.16-patched/pngconf.h 2008-02-27 17:40:23.707516659 -0600
+@@ -310,13 +310,6 @@
+ # define PNG_SAVE_BSD_SOURCE
+ # undef _BSD_SOURCE
+ # endif
+-# ifdef _SETJMP_H
+- /* If you encounter a compiler error here, see the explanation
+- * near the end of INSTALL.
+- */
+- __png.h__ already includes setjmp.h;
+- __dont__ include it again.;
+-# endif
+ # endif /* __linux__ */
+
+ /* include setjmp.h for error handling */