diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-02 21:32:48 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-02 21:32:48 +0000 |
commit | 46383ca6f41e7d69a7100f83faa7d75172f1766c (patch) | |
tree | caf2f960271b4a9ba07d4e5c0398c531735798e9 /sdk/recipes/patches/zlib/zconf.h.in.p | |
parent | e93658a33b15e53413f32f78c355a7998131aa49 (diff) | |
download | toolchains-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/zconf.h.in.p')
-rw-r--r-- | sdk/recipes/patches/zlib/zconf.h.in.p | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdk/recipes/patches/zlib/zconf.h.in.p b/sdk/recipes/patches/zlib/zconf.h.in.p new file mode 100644 index 0000000..772dad3 --- /dev/null +++ b/sdk/recipes/patches/zlib/zconf.h.in.p @@ -0,0 +1,11 @@ +--- zconf.h.in.old 2011-01-02 21:25:38.000000000 +0000 ++++ zconf.h.in 2011-01-02 21:26:07.000000000 +0000 +@@ -370,7 +370,7 @@ + * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as + * equivalently requesting no 64-bit operations + */ +-#if -_LARGEFILE64_SOURCE - -1 == 1 ++#if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1 + # undef _LARGEFILE64_SOURCE + #endif + |