From f9ae88182ef8983dd9a7801811d2326912559f3a Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Tue, 27 Mar 2012 00:59:50 +0900 Subject: [PATCH] SF Bug Tracker id 3510693 - build fail with --disable-device Use INCLUDE_DEVICE_APIS instead of UPNP_HAVE_DEVICE as in other sources. Don't use soap_device_callback if INCLUDE_DEVICE_APIS is not set, otherwise link error occur on Windows. (cherry picked from commit e0e81e6cd2b90b5eda1f806540ceb17595ae149e) --- ChangeLog | 8 ++++++++ upnp/src/api/upnpapi.c | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3700656..d6931eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -332,6 +332,14 @@ Version 1.8.0 Version 1.6.17 ******************************************************************************* +2012-03-26 Yoichi NAKAYAMA + + SF Bug Tracker id 3510693 - build fail with --disable-device + + Use INCLUDE_DEVICE_APIS instead of UPNP_HAVE_DEVICE as in other sources. + Don't use soap_device_callback if INCLUDE_DEVICE_APIS is not set, + otherwise link error occur on Windows. + 2012-03-26 Fabrice Fontaine SF Bug Tracker id 3511149 - --disable-ssdp has no effect diff --git a/upnp/src/api/upnpapi.c b/upnp/src/api/upnpapi.c index 0ec2ad1..fb3b8eb 100644 --- a/upnp/src/api/upnpapi.c +++ b/upnp/src/api/upnpapi.c @@ -368,9 +368,11 @@ static int UpnpInitPreamble(void) return retVal; } +#ifdef INCLUDE_DEVICE_APIS #if EXCLUDE_SOAP == 0 SetSoapCallback(soap_device_callback); #endif +#endif /* INCLUDE_DEVICE_APIS */ #if EXCLUDE_GENA == 0 SetGenaCallback(genaCallback); @@ -3831,7 +3833,7 @@ Upnp_Handle_Type GetDeviceHandleInfo( UpnpDevice_Handle *device_handle_out, struct Handle_Info **HndInfo) { -#ifdef UPNP_HAVE_DEVICE +#ifdef INCLUDE_DEVICE_APIS /* Check if we've got a registered device of the address family specified. */ if ((AddressFamily == AF_INET && UpnpSdkDeviceRegisteredV4 == 0) || (AddressFamily == AF_INET6 && UpnpSdkDeviceregisteredV6 == 0)) { @@ -3851,7 +3853,7 @@ Upnp_Handle_Type GetDeviceHandleInfo( break; } } -#endif /* UPNP_HAVE_DEVICE */ +#endif /* INCLUDE_DEVICE_APIS */ *device_handle_out = -1; return HND_INVALID;