Gentoo Archives: gentoo-commits

From: "Sven Wegener (swegener)" <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-dns/avahi/files: avahi-0.6.21-no-ipv6.patch
Date: Tue, 25 Sep 2007 19:25:35
Message-Id: E1IaFu7-0002fM-2s@stork.gentoo.org
1 swegener 07/09/25 19:17:07
2
3 Added: avahi-0.6.21-no-ipv6.patch
4 Log:
5 Adjust ipv6 patch for 0.6.21, bug #193646.
6 (Portage version: 2.1.3.9)
7
8 Revision Changes Path
9 1.1 net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-dns/avahi/files/avahi-0.6.21-no-ipv6.patch?rev=1.1&content-type=text/plain
13
14 Index: avahi-0.6.21-no-ipv6.patch
15 ===================================================================
16 uClibc systems dont define IPV6_V6ONLY when USE=-ipv6
17
18 --- avahi-core/socket.c
19 +++ avahi-core/socket.c
20 @@ -372,6 +372,7 @@
21 }
22
23 int avahi_open_socket_ipv6(int no_reuse) {
24 +#ifdef IPV6_V6ONLY
25 struct sockaddr_in6 sa, local;
26 int fd = -1, yes, r;
27 int ttl;
28 @@ -437,6 +438,7 @@
29 fail:
30 if (fd >= 0)
31 close(fd);
32 +#endif
33
34 return -1;
35 }
36 @@ -936,6 +938,7 @@
37 }
38
39 int avahi_open_unicast_socket_ipv6(void) {
40 +#ifdef IPV6_V6ONLY
41 struct sockaddr_in6 local;
42 int fd = -1, yes;
43
44 @@ -977,5 +980,6 @@
45 if (fd >= 0)
46 close(fd);
47
48 +#endif
49 return -1;
50 }
51
52
53
54 --
55 gentoo-commits@g.o mailing list