summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/zlib/patches/msvc-vsnprintf.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /security/nss/lib/zlib/patches/msvc-vsnprintf.patch
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'security/nss/lib/zlib/patches/msvc-vsnprintf.patch')
-rw-r--r--security/nss/lib/zlib/patches/msvc-vsnprintf.patch22
1 files changed, 22 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