From 9c3ac6c86f3912b57668efbc9f95eb0a7bb0a7a1 Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Sat, 30 Dec 2023 18:46:20 -0500
Subject: [PATCH] Fix compiling on Linux/GNU systems with miniupnpc

---
 src/i_tcp.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/i_tcp.c b/src/i_tcp.c
index bd960f2ca8..387cf4f5eb 100644
--- a/src/i_tcp.c
+++ b/src/i_tcp.c
@@ -117,10 +117,16 @@
 	} mysockaddr_t;
 
 	#ifdef HAVE_MINIUPNPC
+	#ifdef MINIUPNP_STATICLIB
 		#include "miniwget.h"
 		#include "miniupnpc.h"
 		#include "upnpcommands.h"
-		static UINT8 UPNP_support = TRUE;
+	#else
+		#include "miniupnpc/miniwget.h"
+		#include "miniupnpc/miniupnpc.h"
+		#include "miniupnpc/upnpcommands.h"
+	#endif
+		static boolean UPNP_support = true;
 	#endif // HAVE_MINIUPNC
 
 #endif // !NONET
-- 
GitLab