View | Details | Raw Unified | Return to bug 280298 | Differences between
and this patch

Collapse All | Expand All

(-)b/games/0ad/files/patch-source_network_NetServer.cpp (-1 / +14 lines)
Added Link Here
0
- 
1
--- source/network/NetServer.cpp.orig	2024-07-15 21:47:04 UTC
2
+++ source/network/NetServer.cpp
3
@@ -302,7 +302,11 @@ void CNetServerWorker::SetupUPnP()
4
 	else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)
5
 #endif
6
 	{
7
+#if MINIUPNPC_API_VERSION >= 18
8
+		ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress), NULL, 0);
9
+#else
10
 		ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));
11
+#endif
12
 		allocatedUrls = ret != 0; // urls is allocated on non-zero return values
13
 	}
14
 	else

Return to bug 280298