1
--- pngconf.h.orig 2005-09-13 00:24:26.000000000 +0200
2
+++ pngconf.h 2005-09-13 00:56:00.000000000 +0200
5
# define PNG_SAVE_BSD_SOURCE
9
- /* If you encounter a compiler error here, see the explanation
10
- * near the end of INSTALL.
12
- __png.h__ already includes setjmp.h;
13
- __dont__ include it again.;
15
+/* Explanation added by debian maintainer Philippe Troin <phil@fifi.org>.
16
+ There are two versions of setjmp, depending wether or not we compile for
17
+ BSD. They are incompatible and can cause crashes. The PNG people force
18
+ here a unique behavior for setjmp. It fou get the error below,
19
+ then include <png.h> before <setjmp.h>.
21
+/* Extra modification by Josselin Mouette <joss@debian.org>: there is no
22
+ * need to fail if we are not using _BSD_SOURCE.
24
+# error png.h already includes setjmp.h with some additional fixup.
27
# endif /* __linux__ */