summaryrefslogtreecommitdiff
path: root/misc/celestia/patches/patch-aq
diff options
context:
space:
mode:
Diffstat (limited to 'misc/celestia/patches/patch-aq')
-rw-r--r--misc/celestia/patches/patch-aq15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/celestia/patches/patch-aq b/misc/celestia/patches/patch-aq
new file mode 100644
index 00000000000..7b589b58a60
--- /dev/null
+++ b/misc/celestia/patches/patch-aq
@@ -0,0 +1,15 @@
+$NetBSD: patch-aq,v 1.1 2011/01/30 01:07:00 wiz Exp $
+
+Fix build with png-1.5.
+https://sourceforge.net/tracker/index.php?func=detail&aid=3018741&group_id=21302&atid=121302
+
+--- src/celestia/imagecapture.cpp.orig 2004-11-16 07:14:20.000000000 +0000
++++ src/celestia/imagecapture.cpp
+@@ -30,6 +30,7 @@ extern "C" {
+ #else
+ #include "png.h"
+ #endif
++#include <zlib.h>
+
+ // Define png_jmpbuf() in case we are using a pre-1.0.6 version of libpng
+ #ifndef png_jmpbuf