summaryrefslogtreecommitdiffstats
path: root/package/fbv/fbv-1.0b-libpng15.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-10-25 08:34:40 -0300
committerPeter Korsgaard <peter@korsgaard.com>2013-10-26 11:07:47 +0200
commita784f7566e3dc67f963aa8bc4da296474d0e7fa8 (patch)
tree58d547bfa6de2738e0144976bb8f25ada5bfe891 /package/fbv/fbv-1.0b-libpng15.patch
parent2e5f5b39962e755db89c75ad9b9ebae6f35f4367 (diff)
fbv: patch up support for libpng 1.5+
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/fbv/fbv-1.0b-libpng15.patch')
-rw-r--r--package/fbv/fbv-1.0b-libpng15.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/fbv/fbv-1.0b-libpng15.patch b/package/fbv/fbv-1.0b-libpng15.patch
new file mode 100644
index 000000000..7872a73cf
--- /dev/null
+++ b/package/fbv/fbv-1.0b-libpng15.patch
@@ -0,0 +1,24 @@
+Support for libpng 1.5+ shamelessly taken from Gentoo.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+--- a/png.c
++++ b/png.c
+@@ -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);