This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "fix@me" <fix@me>
Date: Mon, 27 Feb 2012 14:41:08 +0100
Subject: [PATCH 1/2] add static dependency to .pc file


diff --git a/SDL_net.pc.in b/SDL_net.pc.in
index 1111111..2222222 100644
--- a/SDL_net.pc.in
+++ b/SDL_net.pc.in
@@ -8,4 +8,5 @@ Description: net library for Simple DirectMedia Layer
 Version: @VERSION@
 Requires: sdl >= @SDL_VERSION@
 Libs: -L${libdir} -lSDL_net
+Libs.private: -liphlpapi -lws2_32
 Cflags: -I${includedir}/SDL

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 12 Nov 2014 23:44:05 -0500
Subject: [PATCH 2/2] SDLnetsys: Fix winsocks2.h include on i686-w64-mingw32

Signed-off-by: Timothy Gu <timothygu99@gmail.com>

diff --git a/SDLnetsys.h b/SDLnetsys.h
index 1111111..2222222 100644
--- a/SDLnetsys.h
+++ b/SDLnetsys.h
@@ -33,7 +33,7 @@
 /* Include system network headers */
 #if defined(__WIN32__) || defined(WIN32)
 #define __USE_W32_SOCKETS
-#ifdef _WIN64
+#if defined(_WIN64) || defined(__MINGW64_VERSION_MAJOR)
 #include <winsock2.h>
 #include <ws2tcpip.h>
 #else
