From 46383ca6f41e7d69a7100f83faa7d75172f1766c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 2 Jan 2011 21:32:48 +0000 Subject: Extra patches for zlib to avoid ugly warnings caused by the use of undefined preprocessor macros RISC OS-specific patch for zlib to stop it erroneously detecting largefile64 support where there is none Ensure we build zlib static and not shared svn path=/toolchains/; revision=11182 --- sdk/recipes/patches/zlib/zlib.h.p | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sdk/recipes/patches/zlib/zlib.h.p (limited to 'sdk/recipes/patches/zlib/zlib.h.p') diff --git a/sdk/recipes/patches/zlib/zlib.h.p b/sdk/recipes/patches/zlib/zlib.h.p new file mode 100644 index 0000000..7fdd391 --- /dev/null +++ b/sdk/recipes/patches/zlib/zlib.h.p @@ -0,0 +1,11 @@ +--- zlib.h.orig 2009-03-27 01:06:27.000000000 +0000 ++++ zlib.h 2009-03-27 01:06:50.000000000 +0000 +@@ -1571,7 +1571,7 @@ + ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); + #endif + +-#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 ++#if !defined(ZLIB_INTERNAL) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 + # define gzopen gzopen64 + # define gzseek gzseek64 + # define gztell gztell64 -- cgit v1.2.3