summaryrefslogtreecommitdiff
path: root/package/avahi/avahi-ipv6only.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-05 21:38:40 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-05 21:38:40 +0000
commit744c8224a2cdae4086f6bc7477521ee5c8909989 (patch)
treea071952e753a5bb013ee5fe5d39414f961327314 /package/avahi/avahi-ipv6only.patch
parentb8a8f1c434d618ce7c603da4aa2e4b59a3d76515 (diff)
avahi: convert to Makefile.autotools.in format
Diffstat (limited to 'package/avahi/avahi-ipv6only.patch')
-rw-r--r--package/avahi/avahi-ipv6only.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/avahi/avahi-ipv6only.patch b/package/avahi/avahi-ipv6only.patch
new file mode 100644
index 000000000..8cc3cb944
--- /dev/null
+++ b/package/avahi/avahi-ipv6only.patch
@@ -0,0 +1,19 @@
+diff -urpN avahi-0.6.22.orig/avahi-core/socket.c avahi-0.6.22/avahi-core/socket.c
+--- avahi-0.6.22.orig/avahi-core/socket.c 2007-12-16 22:03:08.000000000 +0100
++++ avahi-0.6.22/avahi-core/socket.c 2008-03-31 17:13:24.000000000 +0200
+@@ -394,13 +394,13 @@ int avahi_open_socket_ipv6(int no_reuse)
+ avahi_log_warn("IPV6_UNICAST_HOPS failed: %s", strerror(errno));
+ goto fail;
+ }
+-
++#ifdef IPV6_V6ONLY
+ yes = 1;
+ if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yes, sizeof(yes)) < 0) {
+ avahi_log_warn("IPV6_V6ONLY failed: %s", strerror(errno));
+ goto fail;
+ }
+-
++#endif
+ yes = 1;
+ if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &yes, sizeof(yes)) < 0) {
+ avahi_log_warn("IPV6_MULTICAST_LOOP failed: %s", strerror(errno));