public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-ml/camlimages/files: camlimages-3.0.2-libpng15.patch
@ 2011-02-15 21:01 Alexis Ballier (aballier)
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier (aballier) @ 2011-02-15 21:01 UTC (permalink / raw
  To: gentoo-commits

aballier    11/02/15 21:01:15

  Added:                camlimages-3.0.2-libpng15.patch
  Log:
  Fix build with libpng 1.5
  
  (Portage version: 2.2.0_alpha23/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-ml/camlimages/files/camlimages-3.0.2-libpng15.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlimages/files/camlimages-3.0.2-libpng15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/camlimages/files/camlimages-3.0.2-libpng15.patch?rev=1.1&content-type=text/plain

Index: camlimages-3.0.2-libpng15.patch
===================================================================
Index: camlimages-3.0.2/src/pngread.c
===================================================================
--- camlimages-3.0.2.orig/src/pngread.c
+++ camlimages-3.0.2/src/pngread.c
@@ -69,7 +69,7 @@ value read_png_file_as_rgb24( name )
   }
 
   /* error handling */
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     /* Free all of the memory associated with the png_ptr and info_ptr */
     png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
     fclose(fp);
@@ -134,7 +134,7 @@ value read_png_file_as_rgb24( name )
     png_set_rows(png_ptr, info_ptr, row_pointers);
 
     /* Later, we can return something */
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
       /* Free all of the memory associated with the png_ptr and info_ptr */
       png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
       fclose(fp);
@@ -243,7 +243,7 @@ value read_png_file( name )
   }
 
   /* error handling */
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     /* Free all of the memory associated with the png_ptr and info_ptr */
     png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
     fclose(fp);
@@ -302,7 +302,7 @@ value read_png_file( name )
     png_set_rows(png_ptr, info_ptr, row_pointers);
 
     /* Later, we can return something */
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
       /* Free all of the memory associated with the png_ptr and info_ptr */
       png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
       fclose(fp);
Index: camlimages-3.0.2/src/pngwrite.c
===================================================================
--- camlimages-3.0.2.orig/src/pngwrite.c
+++ camlimages-3.0.2/src/pngwrite.c
@@ -62,7 +62,7 @@ value write_png_file_rgb( name, buffer,
   }
 
   /* error handling */
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     /* Free all of the memory associated with the png_ptr and info_ptr */
     png_destroy_write_struct(&png_ptr, &info_ptr);
     fclose(fp);
@@ -171,7 +171,7 @@ value write_png_file_index( name, buffer
   }
 
   /* error handling */
-  if (setjmp(png_ptr->jmpbuf)) {
+  if (setjmp(png_jmpbuf(png_ptr))) {
     /* Free all of the memory associated with the png_ptr and info_ptr */
     png_destroy_write_struct(&png_ptr, &info_ptr);
     fclose(fp);






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-15 21:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 21:01 [gentoo-commits] gentoo-x86 commit in dev-ml/camlimages/files: camlimages-3.0.2-libpng15.patch Alexis Ballier (aballier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox