mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
8b511df7b9
svn path=/nixpkgs/branches/libpng15/; revision=29651
13 lines
282 B
Diff
13 lines
282 B
Diff
From Gentoo. Fixes compilation with libpng-1.5
|
|
|
|
--- a/src/Util.cpp
|
|
+++ b/src/Util.cpp
|
|
@@ -79,7 +79,7 @@
|
|
return false;
|
|
}
|
|
|
|
- if(setjmp(png_ptr->jmpbuf)) {
|
|
+ if(setjmp(png_jmpbuf(png_ptr))) {
|
|
png_destroy_write_struct(&png_ptr,NULL);
|
|
fclose(fp);
|
|
return false;
|