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-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch

20 lines
579 B

--- a/src/snapshot.c
+++ b/src/snapshot.c
@@ -26,6 +26,7 @@
#include "lightspeed.h"
#ifdef HAVE_LIBPNG
+#include <zlib.h>
#include <png.h>
static int write_png( int message, const void *data );
#endif
@@ -305,7 +306,7 @@
return -1;
png_write_s = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
png_info_s = png_create_info_struct( png_write_s );
- if (setjmp( png_write_s->jmpbuf )) {
+ if (setjmp( png_jmpbuf( png_write_s ) )) {
/* Error writing file */
png_destroy_write_struct( &png_write_s, &png_info_s );
fclose( png_fp );