Merge branch 'lxc'
[slapos.git] / component / leptonica / leptonica-1.69-zlib-include.patch
1 This patch is originally taken from:
2
3 http://leptonica.googlecode.com/issues/attachment?aid=560001000&name=zlib-include.patch&token=m2sugSYxB4xwAuNgrKXyHTxBYNg%3A1337345966091
4
5 To fix the following issue with leptonica:
6
7 http://code.google.com/p/leptonica/issues/detail?id=56
8
9 diff -Nurd -x'*~' leptonica-1.68.orig/src/pngio.c leptonica-1.68/src/pngio.c
10 --- leptonica-1.68.orig/src/pngio.c     2011-02-01 00:41:12.000000000 -0500
11 +++ leptonica-1.68/src/pngio.c  2011-07-09 09:17:17.000000000 -0400
12 @@ -108,6 +108,10 @@
13  
14  #include "png.h"
15  
16 +#ifdef HAVE_LIBZ
17 +#include "zlib.h"
18 +#endif
19 +
20  /* ----------------Set defaults for read/write options ----------------- */
21      /* strip 16 bpp --> 8 bpp on reading png; default is for stripping */
22  static l_int32   var_PNG_STRIP_16_TO_8 = 1;