check for winsock2
This commit is contained in:
@@ -80,6 +80,8 @@ AC_CHECK_HEADERS([\
|
|||||||
sys/wait.h \
|
sys/wait.h \
|
||||||
syslog.h \
|
syslog.h \
|
||||||
termios.h \
|
termios.h \
|
||||||
|
winsock2.h \
|
||||||
|
ws2tcpip.h \
|
||||||
unistd.h \
|
unistd.h \
|
||||||
userconf.h \
|
userconf.h \
|
||||||
usersec.h \
|
usersec.h \
|
||||||
@@ -266,21 +268,33 @@ AC_FIND_FUNC_NO_LIBS(pidfile,util,
|
|||||||
AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
|
AC_FIND_IF_NOT_BROKEN(getaddrinfo,,
|
||||||
[#ifdef HAVE_NETDB_H
|
[#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
#endif],[0,0,0,0])
|
#endif],[0,0,0,0])
|
||||||
|
|
||||||
AC_FIND_IF_NOT_BROKEN(getnameinfo,,
|
AC_FIND_IF_NOT_BROKEN(getnameinfo,,
|
||||||
[#ifdef HAVE_NETDB_H
|
[#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
#endif],[0,0,0,0,0,0,0])
|
#endif],[0,0,0,0,0,0,0])
|
||||||
|
|
||||||
AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
|
AC_FIND_IF_NOT_BROKEN(freeaddrinfo,,
|
||||||
[#ifdef HAVE_NETDB_H
|
[#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
#endif],[0])
|
#endif],[0])
|
||||||
|
|
||||||
AC_FIND_IF_NOT_BROKEN(gai_strerror,,
|
AC_FIND_IF_NOT_BROKEN(gai_strerror,,
|
||||||
[#ifdef HAVE_NETDB_H
|
[#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
#endif],[0])
|
#endif],[0])
|
||||||
|
|
||||||
dnl Darwin is weird, and in some senses not unix, launchd doesn't want
|
dnl Darwin is weird, and in some senses not unix, launchd doesn't want
|
||||||
@@ -628,10 +642,16 @@ AC_HAVE_TYPE([struct sockaddr], [
|
|||||||
#include <sys/socket.h>])
|
#include <sys/socket.h>])
|
||||||
AC_HAVE_TYPE([struct sockaddr_storage], [
|
AC_HAVE_TYPE([struct sockaddr_storage], [
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>])
|
#include <sys/socket.h>
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif])
|
||||||
AC_HAVE_TYPE([struct addrinfo], [
|
AC_HAVE_TYPE([struct addrinfo], [
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netdb.h>])
|
#include <netdb.h>
|
||||||
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif])
|
||||||
AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
|
AC_HAVE_TYPE([struct ifaddrs], [#include <ifaddrs.h>])
|
||||||
AC_HAVE_TYPE([struct iovec],[
|
AC_HAVE_TYPE([struct iovec],[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@@ -640,7 +660,9 @@ AC_HAVE_TYPE([struct iovec],[
|
|||||||
AC_HAVE_TYPE([struct msghdr],[
|
AC_HAVE_TYPE([struct msghdr],[
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
])
|
#ifdef HAVE_WS2TCPIP_H
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
#endif])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl Check for struct winsize
|
dnl Check for struct winsize
|
||||||
|
Reference in New Issue
Block a user