aboutsummaryrefslogtreecommitdiff
path: root/graphics/geomorph/files/patch-src-utils-writepng.c
blob: b4a0e142681a7a8cb200ea7a47c2dab7b526565b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/utils/writepng.c.orig	2008-01-23 03:14:22.000000000 +0100
+++ src/utils/writepng.c	2012-05-04 12:28:50.000000000 +0200
@@ -20,6 +20,7 @@
  */
 
 #include <png.h>
+#include <zlib.h>
 #include <stdlib.h>
 #include "./utils.h"
 
@@ -75,7 +76,7 @@
 
    /* Set error handling.    */
 
-   if (setjmp(png_ptr->jmpbuf))
+   if (setjmp(png_jmpbuf(png_ptr)))
    {
       /* If we get here, we had a problem writing the file */
       fclose(fp);