summaryrefslogtreecommitdiff
path: root/graphics/fbv/png16_api.diff
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/fbv/png16_api.diff')
-rw-r--r--graphics/fbv/png16_api.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/fbv/png16_api.diff b/graphics/fbv/png16_api.diff
new file mode 100644
index 0000000000..235b343666
--- /dev/null
+++ b/graphics/fbv/png16_api.diff
@@ -0,0 +1,21 @@
+diff -Naur fbv-1.0b/png.c fbv-1.0b.patched/png.c
+--- fbv-1.0b/png.c 2003-08-24 16:22:22.000000000 -0400
++++ fbv-1.0b.patched/png.c 2015-11-22 12:21:33.247999000 -0500
+@@ -69,7 +69,7 @@
+ fclose(fh); return(FH_ERROR_FORMAT);
+ }
+ rp=0;
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
+ if(rp) free(rp);
+@@ -161,7 +161,7 @@
+ fclose(fh); return(FH_ERROR_FORMAT);
+ }
+ rp=0;
+- if (setjmp(png_ptr->jmpbuf))
++ if (setjmp(png_jmpbuf(png_ptr)))
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
+ if(rp) free(rp);