summaryrefslogtreecommitdiff
path: root/sdk/recipes/patches/zlib/zlib.h.p
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-01-02 21:32:48 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-01-02 21:32:48 +0000
commit46383ca6f41e7d69a7100f83faa7d75172f1766c (patch)
treecaf2f960271b4a9ba07d4e5c0398c531735798e9 /sdk/recipes/patches/zlib/zlib.h.p
parente93658a33b15e53413f32f78c355a7998131aa49 (diff)
downloadtoolchains-46383ca6f41e7d69a7100f83faa7d75172f1766c.tar.gz
toolchains-46383ca6f41e7d69a7100f83faa7d75172f1766c.tar.bz2
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
Diffstat (limited to 'sdk/recipes/patches/zlib/zlib.h.p')
-rw-r--r--sdk/recipes/patches/zlib/zlib.h.p11
1 files changed, 11 insertions, 0 deletions
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