Verified Commit 19c4aed5 authored by Marco Simonelli's avatar Marco Simonelli Committed by Pier Angelo Vendrame
Browse files

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

- fixes requried to build netwerk/sctp
parent d88c6366
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -54,6 +54,10 @@ __FBSDID("$FreeBSD$");
#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
@@ -58,6 +58,11 @@ __FBSDID("$FreeBSD$");
#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
@@ -63,6 +63,10 @@ __FBSDID("$FreeBSD$");
#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
@@ -79,6 +79,11 @@ __FBSDID("$FreeBSD$");
#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
+4 −0
Original line number Diff line number Diff line
@@ -68,6 +68,10 @@ __FBSDID("$FreeBSD$");
#include <netinet/sctp_peeloff.h>
#endif				/* HAVE_SCTP_PEELOFF_SOCKOPT */

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

extern const struct sctp_cc_functions sctp_cc_functions[];
extern const struct sctp_ss_functions sctp_ss_functions[];

Loading