Test for windows headers to enable the win32 build

This commit is contained in:
Danny Robson 2012-08-07 18:33:44 +10:00
parent e54b43fd72
commit 2993d27ea8
2 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,10 @@ case $host_os in
mingw32)
AM_CONDITIONAL([PLATFORM_WIN32], [true])
AM_CONDITIONAL([PLATFORM_LINUX], [false])
AC_CHECK_HEADERS([winsock2.h ws2tcpip.h])
AC_SUBST([NET_LIBS], [-lws2_32])
#COMMON_LDFLAGS="$COMMON_LDFLAGS -ldbghelp"
;;

View File

@ -25,10 +25,10 @@
#include "../types.hpp"
#include "../raii.hpp"
#include <netdb.h>
#ifdef __WIN32
#else
#include <netdb.h>
#include <arpa/inet.h>
#endif