From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- security/nss/lib/zlib/patches/msvc-vsnprintf.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 security/nss/lib/zlib/patches/msvc-vsnprintf.patch (limited to 'security/nss/lib/zlib/patches/msvc-vsnprintf.patch') 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 -- cgit v1.2.3