diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-17 08:57:52 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-17 09:05:07 +0200 |
commit | 496f38a551df6b73a1b3f258f4904b73c11a13d9 (patch) | |
tree | 21ea5b3f240f7bc6deb675a79dd57120e350bf36 /nss | |
parent | a022c150a6d1ed34fbae80ce8b7fac9c1ad21cf4 (diff) |
-Werror=implicit-function-declaration
...when building --without-system-zlib on Linux.
Change-Id: I9bcb355ec75291609b28397c16068acf293ba6eb
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
Diffstat (limited to 'nss')
-rw-r--r-- | nss/makefile.mk | 5 | ||||
-rw-r--r-- | nss/nss-3.13.5-zlib-werror.patch | 10 |
2 files changed, 14 insertions, 1 deletions
diff --git a/nss/makefile.mk b/nss/makefile.mk index 40b01ca734fb..5c27c2dba824 100644 --- a/nss/makefile.mk +++ b/nss/makefile.mk @@ -48,7 +48,10 @@ VER_PATCH=5 TARFILE_NAME=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)-with-nspr-4.9.1 TARFILE_MD5=a0a861f539f0e7a91d05e6b9457e4db1 TARFILE_ROOTDIR=nss-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH) -PATCH_FILES=nss.patch nss.aix.patch nss-config.patch +PATCH_FILES=nss.patch nss.aix.patch nss-config.patch \ + nss-3.13.5-zlib-werror.patch +# nss-3.13.5-zlib-werror.patch: avoid -Werror=implicit-function-declaration for +# lseek, read, write .IF "$(OS)"=="MACOSX" PATCH_FILES+=nss_macosx.patch diff --git a/nss/nss-3.13.5-zlib-werror.patch b/nss/nss-3.13.5-zlib-werror.patch new file mode 100644 index 000000000000..390dd1fdc0d3 --- /dev/null +++ b/nss/nss-3.13.5-zlib-werror.patch @@ -0,0 +1,10 @@ +--- misc/nss-3.13.5/mozilla/security/nss/lib/zlib/gzguts.h 2010-08-22 03:07:03.000000000 +0200 ++++ misc/build/nss-3.13.5/mozilla/security/nss/lib/zlib/gzguts.h 2012-07-17 08:52:14.821552788 +0200 +@@ -26,6 +26,7 @@ + # include <limits.h> + #endif + #include <fcntl.h> ++#include <unistd.h> + + #ifdef NO_DEFLATE /* for compatibility with old definition */ + # define NO_GZCOMPRESS |