1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/zlib/patches/msvc-vsnprintf.patch Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +--- zlib-1.2.5/zutil.h 2010-04-18 12:29:24 -0700 1.5 ++++ zlib/zutil.h 2010-08-21 18:07:03 -0700 1.6 +@@ -172,17 +172,18 @@ 1.7 + #endif 1.8 + 1.9 + #ifndef F_OPEN 1.10 + # define F_OPEN(name, mode) fopen((name), (mode)) 1.11 + #endif 1.12 + 1.13 + /* functions */ 1.14 + 1.15 +-#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) 1.16 ++#if defined(STDC99) || (defined(__TURBOC__) && __TURBOC__ >= 0x550) || \ 1.17 ++ (defined(_MSC_VER) && _MSC_VER >= 1500) 1.18 + # ifndef HAVE_VSNPRINTF 1.19 + # define HAVE_VSNPRINTF 1.20 + # endif 1.21 + #endif 1.22 + #if defined(__CYGWIN__) 1.23 + # ifndef HAVE_VSNPRINTF 1.24 + # define HAVE_VSNPRINTF 1.25 + # endif