diff options
author | 2007-09-25 19:17:06 +0000 | |
---|---|---|
committer | 2007-09-25 19:17:06 +0000 | |
commit | 8359e204255736c48c3564c017ee16f85b291715 (patch) | |
tree | 99df1282f4a1000b814add9439ccf905ce540237 /net-dns/avahi/files | |
parent | New series for Gnome 2.20 (diff) | |
download | gentoo-2-8359e204255736c48c3564c017ee16f85b291715.tar.gz gentoo-2-8359e204255736c48c3564c017ee16f85b291715.tar.bz2 gentoo-2-8359e204255736c48c3564c017ee16f85b291715.zip |
Adjust ipv6 patch for 0.6.21, bug #193646.
(Portage version: 2.1.3.9)
Diffstat (limited to 'net-dns/avahi/files')
-rw-r--r-- | net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch b/net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch new file mode 100644 index 000000000000..ef7c33caa5f6 --- /dev/null +++ b/net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch @@ -0,0 +1,35 @@ +uClibc systems dont define IPV6_V6ONLY when USE=-ipv6 + +--- avahi-core/socket.c ++++ avahi-core/socket.c +@@ -372,6 +372,7 @@ + } + + int avahi_open_socket_ipv6(int no_reuse) { ++#ifdef IPV6_V6ONLY + struct sockaddr_in6 sa, local; + int fd = -1, yes, r; + int ttl; +@@ -437,6 +438,7 @@ + fail: + if (fd >= 0) + close(fd); ++#endif + + return -1; + } +@@ -936,6 +938,7 @@ + } + + int avahi_open_unicast_socket_ipv6(void) { ++#ifdef IPV6_V6ONLY + struct sockaddr_in6 local; + int fd = -1, yes; + +@@ -977,5 +980,6 @@ + if (fd >= 0) + close(fd); + ++#endif + return -1; + } |