Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
Created October 27, 2011 19:06
Show Gist options
  • Save mistydemeo/1320510 to your computer and use it in GitHub Desktop.
Save mistydemeo/1320510 to your computer and use it in GitHub Desktop.
diff -Nurd -x'*~' leptonica-1.68.orig/src/pngio.c leptonica-1.68/src/pngio.c
--- leptonica-1.68.orig/src/pngio.c 2011-02-01 00:41:12.000000000 -0500
+++ leptonica-1.68/src/pngio.c 2011-07-09 09:17:17.000000000 -0400
@@ -108,6 +108,10 @@
#include "png.h"
+#ifdef HAVE_LIBZ
+#include "zlib.h"
+#endif
+
/* ----------------Set defaults for read/write options ----------------- */
/* strip 16 bpp --> 8 bpp on reading png; default is for stripping */
static l_int32 var_PNG_STRIP_16_TO_8 = 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment