1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Win32: Get socklen_t from <ws2tcpip.h>.

This commit is contained in:
Kalle Olavi Niemitalo 2007-07-18 00:41:08 +03:00 committed by Kalle Olavi Niemitalo
parent f0bc5c5abe
commit 146c42dcaa
2 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ AC_DEFUN([EL_CONFIG_OS_WIN32],
EL_RESTORE_FLAGS EL_RESTORE_FLAGS
fi fi
AC_CHECK_HEADERS(windows.h) AC_CHECK_HEADERS(windows.h ws2tcpip.h)
# TODO: Check this? # TODO: Check this?
# TODO: Check -lws2_32 for IPv6 support # TODO: Check -lws2_32 for IPv6 support

View File

@ -19,6 +19,9 @@
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif #endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> /* socklen_t for MinGW */
#endif
#ifdef HAVE_GETIFADDRS #ifdef HAVE_GETIFADDRS
#ifdef HAVE_NETDB_H #ifdef HAVE_NETDB_H