librb: acinclude: check for ipv6 on win32
This commit is contained in:
parent
ddebec8cfd
commit
ea83b018b5
1 changed files with 5 additions and 0 deletions
|
@ -38,8 +38,13 @@ dnl RB_PROTO_INET6
|
||||||
AC_DEFUN([RB_PROTO_INET6],[
|
AC_DEFUN([RB_PROTO_INET6],[
|
||||||
AC_CACHE_CHECK([for INET6 protocol support], [rb_cv_proto_inet6],[
|
AC_CACHE_CHECK([for INET6 protocol support], [rb_cv_proto_inet6],[
|
||||||
AC_TRY_CPP([
|
AC_TRY_CPP([
|
||||||
|
#ifndef _WIN32
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#else
|
||||||
|
#include <winsock2.h>
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef PF_INET6
|
#ifndef PF_INET6
|
||||||
#error Missing PF_INET6
|
#error Missing PF_INET6
|
||||||
|
|
Loading…
Reference in a new issue