summaryrefslogtreecommitdiff
blob: 6ecd44c1e8d2680ff63f3654f40abd4d12d80a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/spuunmux.c
+++ src/spuunmux.c
@@ -37,6 +37,7 @@
 
 #include <netinet/in.h>
 
+#include <zlib.h>
 #include <png.h>
 
 #include "rgb.h"
@@ -483,7 +484,7 @@
     return -1;
     }
 
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
     png_destroy_write_struct(&png_ptr, &info_ptr);
     fclose(fp);
     return -1;