FreeBSD Bugzilla – Attachment 162394 Details for
Bug 203983
[patch] games/0ad 0.0.18_1 build failure due to invalid number of argument for upnpDiscover function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix it (not the best solution I think)
patch-source_network_NetServer.cpp (text/plain), 895 bytes, created by
Thibault Payet
on 2015-10-23 13:55:05 UTC
(
hide
)
Description:
Patch to fix it (not the best solution I think)
Filename:
MIME Type:
Creator:
Thibault Payet
Created:
2015-10-23 13:55:05 UTC
Size:
895 bytes
patch
obsolete
>--- source/network/NetServer.cpp.orig 2015-10-23 13:50:44 UTC >+++ source/network/NetServer.cpp >@@ -228,6 +228,7 @@ void* CNetServerWorker::SetupUPnP(void*) > > int ret = 0; > bool allocatedUrls = false; >+ int error = 0; // Set this for upnpDiscover > > // Try a cached URL first > if (!rootDescURL.empty() && UPNP_GetIGDFromUrl(rootDescURL.c_str(), &urls, &data, internalIPAddress, sizeof(internalIPAddress))) >@@ -236,7 +237,7 @@ void* CNetServerWorker::SetupUPnP(void*) > ret = 1; > } > // No cached URL, or it did not respond. Try getting a valid UPnP device for 10 seconds. >- else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL) >+ else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0,&error)) != NULL) > { > ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress)); > allocatedUrls = ret != 0; // urls is allocated on non-zero return values
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 203983
:
162394