From 86a7ca2b6f2d1f76581bcb47fc4696bce075e8aa Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 8 Feb 2013 17:51:53 +0000 Subject: [PATCH] - bugfix for older upnpc versions --- source/shared_lib/sources/platform/posix/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/posix/socket.cpp b/source/shared_lib/sources/platform/posix/socket.cpp index b9509e90a..2d75a2100 100644 --- a/source/shared_lib/sources/platform/posix/socket.cpp +++ b/source/shared_lib/sources/platform/posix/socket.cpp @@ -2480,7 +2480,7 @@ int UPNP_Tools::upnp_init(void *param) { if(SystemFlags::VERBOSE_MODE_ENABLED) printf("UPnP device found: %s %s\n", dev->descURL, dev->st); //printf("UPnP device found: [%s] [%s] lanaddr [%s]\n", dev->descURL, dev->st,lanaddr); -#ifndef MINIUPNPC_VERSION_PRE1_7 +#if !defined(MINIUPNPC_VERSION_PRE1_7) && !defined(MINIUPNPC_VERSION_PRE1_6) descXML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr, (sizeof(lanaddr) / sizeof(lanaddr[0])),0); #else descXML = (char *)miniwget_getaddr(dev->descURL, &descXMLsize, lanaddr, (sizeof(lanaddr) / sizeof(lanaddr[0]))); @@ -2491,7 +2491,7 @@ int UPNP_Tools::upnp_init(void *param) { parserootdesc (descXML, descXMLsize, &data); free (descXML); descXML = 0; -#ifndef MINIUPNPC_VERSION_PRE1_7 +#if !defined(MINIUPNPC_VERSION_PRE1_7) && !defined(MINIUPNPC_VERSION_PRE1_6) GetUPNPUrls (&urls, &data, dev->descURL,0); #else GetUPNPUrls (&urls, &data, dev->descURL);