summaryrefslogtreecommitdiff
path: root/games/crossfire-server/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-04-01 15:21:50 +0000
committerwiz <wiz@pkgsrc.org>2011-04-01 15:21:50 +0000
commitbd73396860605abb3b1e88716d4363afdd690b82 (patch)
tree76f39a5d3cda9ac88537149dc3eb9d8311aef0ac /games/crossfire-server/patches
parentf0824dd9c1921f959577f54c37de32f2316b0ba0 (diff)
downloadpkgsrc-bd73396860605abb3b1e88716d4363afdd690b82.tar.gz
Fix build with png-1.5.
Diffstat (limited to 'games/crossfire-server/patches')
-rw-r--r--games/crossfire-server/patches/patch-crossedit_png.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/crossfire-server/patches/patch-crossedit_png.c b/games/crossfire-server/patches/patch-crossedit_png.c
new file mode 100644
index 00000000000..b05dabb808b
--- /dev/null
+++ b/games/crossfire-server/patches/patch-crossedit_png.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-crossedit_png.c,v 1.1 2011/04/01 15:21:50 wiz Exp $
+
+Fix build with png-1.5.
+
+--- crossedit/png.c.orig 2008-02-01 05:56:34.000000000 +0000
++++ crossedit/png.c
+@@ -269,7 +269,7 @@ int png_to_xpixmap(Display *display, Dra
+ png_destroy_read_struct (&png_ptr, &info_ptr, NULL);
+ return PNGX_OUTOFMEM;
+ }
+- if (setjmp (png_ptr->jmpbuf)) {
++ if (setjmp (png_jmpbuf(png_ptr))) {
+ png_destroy_read_struct (&png_ptr, &info_ptr, &end_info);
+ return PNGX_DATA;
+ }