mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-02 11:59:45 -05:00
ITS#6938 WIN32 IPv6: fix sockaddr_storage detection
It's defined in winsock2.h. Also remove error for missing INET6_ADDRSTRLEN define, we already have it in our <ac/socket.h> if it's missing.
This commit is contained in:
parent
90e6bfe0c6
commit
f0999bdc22
1 changed files with 7 additions and 7 deletions
14
configure.ac
14
configure.ac
|
|
@ -1149,21 +1149,21 @@ elif test $ol_enable_ipv6 != no ; then
|
|||
|
||||
AC_CACHE_CHECK([struct sockaddr_storage],ol_cv_struct_sockaddr_storage,[
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef HAVE_WINSOCK2_H
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
]], [[
|
||||
struct sockaddr_storage ss;
|
||||
]])],[ol_cv_struct_sockaddr_storage=yes],[ol_cv_struct_sockaddr_storage=no])])
|
||||
|
||||
if test $ol_cv_inet6_addrstrlen = yes &&
|
||||
test $ol_cv_struct_sockaddr_storage = yes ; then
|
||||
ol_link_ipv6=yes
|
||||
elif test $ol_enable_ipv6 = yes &&
|
||||
test $ol_cv_inet6_addrstrlen = no ; then
|
||||
AC_MSG_ERROR([IPv6 support requires INET6_ADDRSTRLEN])
|
||||
elif test $ol_enable_ipv6 = yes &&
|
||||
if test $ol_enable_ipv6 = yes &&
|
||||
test $ol_cv_struct_sockaddr_storage = no ; then
|
||||
AC_MSG_ERROR([IPv6 support requires struct sockaddr_storage])
|
||||
else
|
||||
ol_link_ipv6=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue