public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sci-physics/lightspeed/files: lightspeed-1.2a-libpng15.patch
@ 2011-09-14 18:51 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2011-09-14 18:51 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/09/14 18:51:32

  Added:                lightspeed-1.2a-libpng15.patch
  Log:
  Fix building with libpng15 wrt #378397 by Diego Elio Pettenò
  
  (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/lightspeed/files/lightspeed-1.2a-libpng15.patch?rev=1.1&content-type=text/plain

Index: lightspeed-1.2a-libpng15.patch
===================================================================
--- src/snapshot.c
+++ 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 );






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

only message in thread, other threads:[~2011-09-14 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-14 18:51 [gentoo-commits] gentoo-x86 commit in sci-physics/lightspeed/files: lightspeed-1.2a-libpng15.patch Samuli Suominen (ssuominen)

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