~ubuntu-branches/ubuntu/intrepid/libpng/intrepid-security

« back to all changes in this revision

Viewing changes to debian/patches/setjmp_error.patch

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-11-21 19:07:43 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20061121190743-wkt0yzs5uq2xoq10
Tags: 1.2.13-4
Removed drop_pass_width patch. Closes: #399499.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- pngconf.h.orig      2005-09-13 00:24:26.000000000 +0200
2
 
+++ pngconf.h   2005-09-13 00:56:00.000000000 +0200
3
 
@@ -299,13 +299,18 @@
4
 
 #    ifdef _BSD_SOURCE
5
 
 #      define PNG_SAVE_BSD_SOURCE
6
 
 #      undef _BSD_SOURCE
7
 
-#    endif
8
 
-#    ifdef _SETJMP_H
9
 
-     /* If you encounter a compiler error here, see the explanation
10
 
-      * near the end of INSTALL.
11
 
-      */
12
 
-         __png.h__ already includes setjmp.h;
13
 
-         __dont__ include it again.;
14
 
+#      ifdef _SETJMP_H
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>.
20
 
+*/
21
 
+/* Extra modification by Josselin Mouette <joss@debian.org>: there is no
22
 
+ * need to fail if we are not using _BSD_SOURCE.
23
 
+ * */
24
 
+#        error png.h already includes setjmp.h with some additional fixup.
25
 
+#      endif
26
 
 #    endif
27
 
 #  endif /* __linux__ */
28