slackbuilds_ponce/academic/celestia/celestia-1.6.1-libpng15.patch
David Spencer 948f0ac5b9 academic/celestia: Patched for libpng16.
Fixes build failure on -current.

Signed-off-by: David Spencer <baildon.research@googlemail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-01-17 09:40:16 +07:00

14 lines
387 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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