Ignore:
Timestamp:
Sep 30, 2015, 11:32:54 PM (9 years ago)
Author:
leper
Message:

Fix build for recent versions of miniupnpc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/network/NetServer.cpp

    r16963 r17091  
    237237    }
    238238    // No cached URL, or it did not respond. Try getting a valid UPnP device for 10 seconds.
     239#if defined(MINIUPNPC_API_VERSION) && MINIUPNPC_API_VERSION >= 14
     240    else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 2, 0)) != NULL)
     241#else
    239242    else if ((devlist = upnpDiscover(10000, 0, 0, 0, 0, 0)) != NULL)
     243#endif
    240244    {
    241245        ret = UPNP_GetValidIGD(devlist, &urls, &data, internalIPAddress, sizeof(internalIPAddress));
Note: See TracChangeset for help on using the changeset viewer.