Commit f820b16f authored by Marco Simonelli's avatar Marco Simonelli Committed by brizental
Browse files

BB 41459: WebRTC fails to build under mingw (Part 4)

- fixes requried to build netwerk/sctp
parent 16e2660e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -62,3 +62,5 @@ if CONFIG['OS_TARGET'] in ('Linux', 'Android'):
    DEFINES['_GNU_SOURCE'] = 1
elif CONFIG['OS_TARGET'] == 'Darwin':
    DEFINES['__APPLE_USE_RFC_2292'] = 1
elif CONFIG['OS_TARGET'] == 'WINNT':
    DEFINES['_CRT_RAND_S'] = True
+4 −0
Original line number Diff line number Diff line
@@ -49,6 +49,10 @@
#include <netinet/sctp_kdtrace.h>
#endif

#if defined(_WIN32) && defined(__MINGW32__)
#include <minmax.h>
#endif

#define SHIFT_MPTCP_MULTI_N 40
#define SHIFT_MPTCP_MULTI_Z 16
#define SHIFT_MPTCP_MULTI 8
+5 −0
Original line number Diff line number Diff line
@@ -53,6 +53,11 @@
#if defined(__FreeBSD__) && !defined(__Userspace__)
#include <netinet/sctp_lock_bsd.h>
#endif

#if defined(_WIN32) && !defined(_MSC_VER)
#include <minmax.h>
#endif

/*
 * NOTES: On the outbound side of things I need to check the sack timer to
 * see if I should generate a sack into the chunk queue (if I have data to
+4 −0
Original line number Diff line number Diff line
@@ -58,6 +58,10 @@
#include <sys/smp.h>
#endif

#if defined(_WIN32) && !defined(_MSC_VER)
#include <minmax.h>
#endif

static void
sctp_stop_all_cookie_timers(struct sctp_tcb *stcb)
{
+5 −0
Original line number Diff line number Diff line
@@ -74,6 +74,11 @@
#if defined(__Userspace__) && defined(INET6)
#include <netinet6/sctp6_var.h>
#endif

#if defined(_WIN32) && !defined(_MSC_VER)
#include <minmax.h>
#endif

#if defined(__APPLE__) && !defined(__Userspace__)
#if !(defined(APPLE_LEOPARD) || defined(APPLE_SNOWLEOPARD))
#define SCTP_MAX_LINKHDR 16
Loading