Skip to content
Snippets Groups Projects
Commit 8824ce87 authored by sphere's avatar sphere
Browse files

Merge branch 'upnpn18' into 'next'

Fix compilation broken on latest miniupnpc version (resolves #1274)

Closes #1274

See merge request STJr/SRB2!2496
parents ab1dcaa1 51af830d
No related branches found
No related tags found
No related merge requests found
......@@ -317,7 +317,11 @@ init_upnpc_once(struct upnpdata *upnpuserdata)
I_OutputMsg(M_GetText("Found UPnP device:\n desc: %s\n st: %s\n"),
dev->descURL, dev->st);
#if (MINIUPNPC_API_VERSION >= 18)
UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr), NULL, 0);
#else
UPNP_GetValidIGD(devlist, &urls, &data, lanaddr, sizeof(lanaddr));
#endif
I_OutputMsg(M_GetText("Local LAN IP address: %s\n"), lanaddr);
descXML = miniwget(dev->descURL, &descXMLsize, scope_id, &status_code);
if (descXML)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment