aboutsummaryrefslogtreecommitdiff
path: root/academic/celestia/celestia-1.6.1-libpng15.patch
diff options
context:
space:
mode:
Diffstat (limited to 'academic/celestia/celestia-1.6.1-libpng15.patch')
-rw-r--r--academic/celestia/celestia-1.6.1-libpng15.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/academic/celestia/celestia-1.6.1-libpng15.patch b/academic/celestia/celestia-1.6.1-libpng15.patch
new file mode 100644
index 0000000000000..5dffbab246efc
--- /dev/null
+++ b/academic/celestia/celestia-1.6.1-libpng15.patch
@@ -0,0 +1,14 @@
+imagecapture.cpp:184:40: error: ‘Z_BEST_COMPRESSION’ was not declared in this scope
+
+--- src/celestia/imagecapture.cpp
++++ src/celestia/imagecapture.cpp
+@@ -31,6 +31,9 @@
+ #include "png.h"
+ #endif
+
++// Z_BEST_COMPRESSION
++#include <zlib.h>
++
+ // Define png_jmpbuf() in case we are using a pre-1.0.6 version of libpng
+ #ifndef png_jmpbuf
+ #define png_jmpbuf(png_ptr) png_ptr->jmpbuf