FreeBSD Bugzilla – Attachment 252089 Details for
Bug 280298
net/miniupnpc: in 2.2.8 changed API for UPNP_GetValidIGD: build error net-p2p/transmission-components and other
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix build of games/0ad
0001-games-0ad-fix-build-with-miniupnpc-2.2.8.patch (text/plain), 1.21 KB, created by
Stefan Ehmann
on 2024-07-15 22:07:14 UTC
(
hide
)
Description:
patch to fix build of games/0ad
Filename:
MIME Type:
Creator:
Stefan Ehmann
Created:
2024-07-15 22:07:14 UTC
Size:
1.21 KB
patch
obsolete
>From 7d7d2e38292ac8bfad700aa24bdc5427d50e41fe Mon Sep 17 00:00:00 2001 >From: Stefan Ehmann <shoesoft@gmx.net> >Date: Tue, 16 Jul 2024 00:01:10 +0200 >Subject: [PATCH] games/0ad: fix build with miniupnpc-2.2.8 > >--- > games/0ad/files/patch-source_network_NetServer.cpp | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 games/0ad/files/patch-source_network_NetServer.cpp > >diff --git a/games/0ad/files/patch-source_network_NetServer.cpp b/games/0ad/files/patch-source_network_NetServer.cpp >new file mode 100644 >index 000000000000..e6e6a3cb65d6 >--- /dev/null >+++ b/games/0ad/files/patch-source_network_NetServer.cpp >@@ -0,0 +1,14 @@ >+--- source/network/NetServer.cpp.orig 2024-07-15 21:47:04 UTC >++++ source/network/NetServer.cpp >+@@ -302,7 +302,11 @@ void CNetServerWorker::SetupUPnP() >+ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL) >+ #endif >+ { >++#if MINIUPNPC_API_VERSION >= 18 >++ ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress), NULL, 0); >++#else >+ ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress)); >++#endif >+ allocatedUrls = ret != 0; // urls is allocated on non-zero return values >+ } >+ else >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 280298
:
252077
|
252080
|
252081
|
252082
| 252089 |
252090