diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /security/nss/lib/zlib/patches | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/nss/lib/zlib/patches')
-rw-r--r-- | security/nss/lib/zlib/patches/msvc-vsnprintf.patch | 22 | ||||
-rw-r--r-- | security/nss/lib/zlib/patches/prune-zlib.sh | 34 |
2 files changed, 56 insertions, 0 deletions
diff --git a/security/nss/lib/zlib/patches/msvc-vsnprintf.patch b/security/nss/lib/zlib/patches/msvc-vsnprintf.patch new file mode 100644 index 0000000000..2b8d2a646c --- /dev/null +++ b/security/nss/lib/zlib/patches/msvc-vsnprintf.patch @@ -0,0 +1,22 @@ +--- zlib-1.2.5/zutil.h 2010-04-18 12:29:24 -0700 ++++ zlib/zutil.h 2010-08-21 18:07:03 -0700 +@@ -172,17 +172,18 @@ + #endif + + #ifndef F_OPEN + # define F_OPEN(name, mode) fopen((name), (mode)) + #endif + + /* functions */ + +-#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) ++#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) || \ ++ (defined(_MSC_VER) && _MSC_VER >= 1500) + # ifndef HAVE_VSNPRINTF + # define HAVE_VSNPRINTF + # endif + #endif + #if defined(__CYGWIN__) + # ifndef HAVE_VSNPRINTF + # define HAVE_VSNPRINTF + # endif diff --git a/security/nss/lib/zlib/patches/prune-zlib.sh b/security/nss/lib/zlib/patches/prune-zlib.sh new file mode 100644 index 0000000000..6a742fb4da --- /dev/null +++ b/security/nss/lib/zlib/patches/prune-zlib.sh @@ -0,0 +1,34 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +files_to_remove=" +CMakeLists.txt +ChangeLog +FAQ +INDEX +Makefile +Makefile.in +amiga +configure +contrib +doc +examples +make_vms.com +msdos +nintendods +old +qnx +treebuild.xml +watcom +win32 +zconf.h.cmakein +zconf.h.in +zlib.3 +zlib.3.pdf +zlib.map +zlib.pc.in +zlib2ansi +" + +rm -rf $files_to_remove |