diff options
author | Raimo Niskanen <[email protected]> | 2010-10-14 16:56:43 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-11-09 12:14:57 +0100 |
commit | ce4c78512fccda58e75c4846ced1c3a4e10d7454 (patch) | |
tree | 91249b26f7b2c6e2d3962a019e2d74a9d9451c89 /erts/aclocal.m4 | |
parent | ff7a4dbd6881e2434ed2619df541c113281cf0a0 (diff) | |
download | otp-ce4c78512fccda58e75c4846ced1c3a4e10d7454.tar.gz otp-ce4c78512fccda58e75c4846ced1c3a4e10d7454.tar.bz2 otp-ce4c78512fccda58e75c4846ced1c3a4e10d7454.zip |
Implement inet:getifaddrs/0 on Windows
Diffstat (limited to 'erts/aclocal.m4')
-rw-r--r-- | erts/aclocal.m4 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4 index 3b1edd7605..0d7914fbb8 100644 --- a/erts/aclocal.m4 +++ b/erts/aclocal.m4 @@ -386,14 +386,24 @@ AC_DEFUN(LM_SYS_IPV6, AC_CACHE_VAL(ac_cv_sys_ipv6_support, [ok_so_far=yes AC_TRY_COMPILE([#include <sys/types.h> -#include <netinet/in.h>], +#ifdef __WIN32__ +#include <winsock2.h> +#include <ws2tcpip.h> +#else +#include <netinet/in.h> +#endif], [struct in6_addr a6; struct sockaddr_in6 s6;], ok_so_far=yes, ok_so_far=no) if test $ok_so_far = yes; then ac_cv_sys_ipv6_support=yes else AC_TRY_COMPILE([#include <sys/types.h> -#include <netinet/in.h>], +#ifdef __WIN32__ +#include <winsock2.h> +#include <ws2tcpip.h> +#else +#include <netinet/in.h> +#endif], [struct in_addr6 a6; struct sockaddr_in6 s6;], ac_cv_sys_ipv6_support=in_addr6, ac_cv_sys_ipv6_support=no) fi |