Commit 6e3e241c authored by Rafaël Carré's avatar Rafaël Carré

inet_pton is only available on Vista and newer

parent bf02b8dd
...@@ -589,6 +589,9 @@ AC_SEARCH_LIBS([getaddrinfo], [nsl], [ ...@@ -589,6 +589,9 @@ AC_SEARCH_LIBS([getaddrinfo], [nsl], [
LIBS="${LIBS} ${SOCKET_LIBS}" LIBS="${LIBS} ${SOCKET_LIBS}"
AC_LINK_IFELSE([ AC_LINK_IFELSE([
AC_LANG_PROGRAM([#ifdef WIN32 AC_LANG_PROGRAM([#ifdef WIN32
# if _WIN32_WINNT < 0x600
# error Needs vista+
# endif
#include <ws2tcpip.h> #include <ws2tcpip.h>
#else #else
#include <sys/socket.h> #include <sys/socket.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment