summaryrefslogtreecommitdiff
path: root/wm/windowmaker/patches/patch-ao
diff options
context:
space:
mode:
Diffstat (limited to 'wm/windowmaker/patches/patch-ao')
-rw-r--r--wm/windowmaker/patches/patch-ao15
1 files changed, 15 insertions, 0 deletions
diff --git a/wm/windowmaker/patches/patch-ao b/wm/windowmaker/patches/patch-ao
new file mode 100644
index 00000000000..9d8fb427a78
--- /dev/null
+++ b/wm/windowmaker/patches/patch-ao
@@ -0,0 +1,15 @@
+$NetBSD: patch-ao,v 1.1 2011/01/14 19:41:10 tron Exp $
+
+Fix build with "png" 1.5.1beta01 and newer.
+
+--- wrlib/png.c.orig 2004-10-12 19:22:04.000000000 +0100
++++ wrlib/png.c 2011-01-14 19:38:22.000000000 +0000
+@@ -97,7 +97,7 @@
+ }
+
+ RErrorCode = RERR_INTERNAL;
+- if (setjmp(png->jmpbuf)) {
++ if (png_jmpbuf(png)) {
+ fclose(f);
+ png_destroy_read_struct(&png, &pinfo, &einfo);
+ if (image)