blob: ef7c33caa5f63d7b5bea2bce00791321d9cc9c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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;
}
|