librb: acinclude: check for ipv6 on win32

This commit is contained in:
William Pitcock 2016-03-20 04:08:12 -05:00
parent ddebec8cfd
commit ea83b018b5
1 changed files with 5 additions and 0 deletions

View File

@ -38,8 +38,13 @@ dnl RB_PROTO_INET6
AC_DEFUN([RB_PROTO_INET6],[
AC_CACHE_CHECK([for INET6 protocol support], [rb_cv_proto_inet6],[
AC_TRY_CPP([
#ifndef _WIN32
#include <sys/types.h>
#include <sys/socket.h>
#else
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#ifndef PF_INET6
#error Missing PF_INET6