mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r25431: Add detection for IPv6 support.
Jeremy.
This commit is contained in:
parent
fef2ed2130
commit
86b47d267d
@ -3085,6 +3085,26 @@ if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl test for ipv6
|
||||||
|
AC_CACHE_CHECK([for ipv6 support],samba_cv_HAVE_IPV6,[
|
||||||
|
AC_TRY_COMPILE([
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <netdb.h>],
|
||||||
|
[
|
||||||
|
struct sockaddr_storage sa_store;
|
||||||
|
struct addrinfo *ai = NULL;
|
||||||
|
int s = socket(AF_INET6, SOCK_STREAM, 0)
|
||||||
|
int ret = getaddrinfo(NULL, NULL, NULL &ai);
|
||||||
|
if (ret != 0) {
|
||||||
|
const char *es = gai_strerror(ret);
|
||||||
|
}
|
||||||
|
freeaddrinfo(ai);
|
||||||
|
],
|
||||||
|
samba_cv_HAVE_IPV6=yes,samba_cv_HAVE_IPV6=no)])
|
||||||
|
if test x"$samba_cv_HAVE_IPV6" = x"yes"; then
|
||||||
|
AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
|
||||||
|
fi
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
# look for a method of setting the effective uid
|
# look for a method of setting the effective uid
|
||||||
|
Loading…
Reference in New Issue
Block a user