You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/molscript/files/2.1.2-libpng15.patch

20 lines
536 B

--- png_img.c
+++ png_img.c
@@ -18,6 +18,7 @@
#include <GL/gl.h>
+#include <zlib.h>
#include <png.h>
#include "clib/str_utils.h"
@@ -69,7 +70,7 @@
info_ptr = png_create_info_struct (png_ptr);
if (info_ptr == NULL)
yyerror ("png_img: could not create PNG info structure");
- if (setjmp (png_ptr->jmpbuf)) yyerror ("png_img: could not setjmp");
+ if (setjmp (png_jmpbuf(png_ptr))) yyerror ("png_img: could not setjmp");
png_init_io (png_ptr, outfile);
png_set_compression_level (png_ptr, compression_level);