configure/utils: Add ipv6 support for mingw build
This commit is contained in:

committed by
Max Kellermann

parent
81e8c4bbff
commit
ef39da5973
@@ -446,7 +446,11 @@ if test x$enable_ipv6 = xyes; then
|
|||||||
AC_EGREP_CPP([AP_maGiC_VALUE],
|
AC_EGREP_CPP([AP_maGiC_VALUE],
|
||||||
[
|
[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <winsock2.h>
|
||||||
|
#else
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#endif
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#ifdef PF_INET6
|
#ifdef PF_INET6
|
||||||
#ifdef AF_INET6
|
#ifdef AF_INET6
|
||||||
|
@@ -33,7 +33,11 @@
|
|||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_IPV6
|
#if HAVE_IPV6 && WIN32
|
||||||
|
#include <winsock2.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_IPV6 && ! WIN32
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user