celestia/celestia-1.6.0-png15.patch

15 lines
324 B
Diff

$NetBSD$
Fix build with png-1.5.
--- 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