summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2007-09-25 19:17:06 +0000
committerSven Wegener <swegener@gentoo.org>2007-09-25 19:17:06 +0000
commit8359e204255736c48c3564c017ee16f85b291715 (patch)
tree99df1282f4a1000b814add9439ccf905ce540237 /net-dns/avahi/files
parentNew series for Gnome 2.20 (diff)
downloadgentoo-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.patch35
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;
+ }