mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
lib/replace: make sure IPV6_V6ONLY is available for IPv6 support
We really on IPV6_V6ONLY being supported. metze
This commit is contained in:
parent
db29b2d6d2
commit
41cd6f9928
@ -439,6 +439,14 @@ if (ret != 0) {
|
||||
const char *es = gai_strerror(ret);
|
||||
}
|
||||
freeaddrinfo(ai);
|
||||
{
|
||||
int val = 1;
|
||||
#ifdef HAVE_LINUX_IPV6_V6ONLY_26
|
||||
#define IPV6_V6ONLY 26
|
||||
#endif
|
||||
ret = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
|
||||
(const void *)&val, sizeof(val));
|
||||
}
|
||||
],[
|
||||
libreplace_cv_HAVE_IPV6=yes
|
||||
],[
|
||||
|
Loading…
Reference in New Issue
Block a user