mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 08:54:02 +01:00
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_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
|
||||
|
|
Loading…
Reference in a new issue