From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- netwerk/sctp/src/win32-rands.patch | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 netwerk/sctp/src/win32-rands.patch (limited to 'netwerk/sctp/src/win32-rands.patch') diff --git a/netwerk/sctp/src/win32-rands.patch b/netwerk/sctp/src/win32-rands.patch new file mode 100644 index 0000000000..a7addb8dec --- /dev/null +++ b/netwerk/sctp/src/win32-rands.patch @@ -0,0 +1,36 @@ +diff --git a/netinet/sctp_asconf.c b/netinet/sctp_asconf.c +--- a//netinet/sctp_asconf.c ++++ b//netinet/sctp_asconf.c +@@ -32,6 +32,14 @@ + * THE POSSIBILITY OF SUCH DAMAGE. + */ + ++#if defined(_WIN32) ++// Needed for unified build so that rand_s is available to all unified ++// sources. ++#if !defined(_CRT_RAND_S) && !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) ++#define _CRT_RAND_S ++#endif ++#endif ++ + #if defined(__FreeBSD__) && !defined(__Userspace__) + #include + __FBSDID("$FreeBSD$"); +diff --git a/user_environment.h b/user_environment.h +--- a/user_environment.h ++++ b/user_environment.h +@@ -30,6 +30,15 @@ + + #ifndef _USER_ENVIRONMENT_H_ + #define _USER_ENVIRONMENT_H_ ++ ++#if defined(_WIN32) ++// Needed for unified build so that rand_s is available to all unified ++// sources. ++#if !defined(_CRT_RAND_S) && !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) ++#define _CRT_RAND_S ++#endif ++#endif ++ + /* __Userspace__ */ + #include -- cgit v1.2.3