diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2012-04-11 11:36:21 -0300 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-04-14 23:49:09 +0200 |
commit | 0c004d28f9b597ab50b376ed19ee23f188b6e3c5 (patch) | |
tree | 4dd493d58c3170324b13a4a61419f80b2591e2c1 /package/libupnp/libupnp-1.6.17-no-ipv6.patch | |
parent | d6c110e77fce6ebaf79b02caa69f1f5659f86100 (diff) |
libupnp: bump to version 1.6.17
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libupnp/libupnp-1.6.17-no-ipv6.patch')
-rw-r--r-- | package/libupnp/libupnp-1.6.17-no-ipv6.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/libupnp/libupnp-1.6.17-no-ipv6.patch b/package/libupnp/libupnp-1.6.17-no-ipv6.patch new file mode 100644 index 000000000..67b3895e5 --- /dev/null +++ b/package/libupnp/libupnp-1.6.17-no-ipv6.patch @@ -0,0 +1,37 @@ +From 812bdabc2c293173ea943059a577d480884a6cc1 Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <gustavo@zacarias.com.ar> +Date: Wed, 11 Apr 2012 11:17:45 -0300 +Subject: [PATCH] ssdp_device: exclude IPv6 stuff when there's no IPv6 + +Add an additional INET_IPV6 exclusion around IPV6_MULTICAST_HOPS since +the definition isn't guaranteed to exist when the toolchain lacks IPv6 +support. + +Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> +--- + upnp/src/ssdp/ssdp_device.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/upnp/src/ssdp/ssdp_device.c b/upnp/src/ssdp/ssdp_device.c +index d3517cc..a439005 100644 +--- a/upnp/src/ssdp/ssdp_device.c ++++ b/upnp/src/ssdp/ssdp_device.c +@@ -210,6 +210,7 @@ static int NewRequestHandler( + (char *)&ttl, sizeof(int)); + socklen = sizeof(struct sockaddr_in); + break; ++#ifdef INET_IPV6 + case AF_INET6: + inet_ntop(AF_INET6, + &((struct sockaddr_in6 *)DestAddr)->sin6_addr, +@@ -219,6 +220,7 @@ static int NewRequestHandler( + setsockopt(ReplySock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, + (char *)&hops, sizeof(hops)); + break; ++#endif + default: + UpnpPrintf(UPNP_CRITICAL, SSDP, __FILE__, __LINE__, + "Invalid destination address specified."); +-- +1.7.3.4 + |