Test for windows headers to enable the win32 build
This commit is contained in:
parent
e54b43fd72
commit
2993d27ea8
@ -100,6 +100,10 @@ case $host_os in
|
|||||||
mingw32)
|
mingw32)
|
||||||
AM_CONDITIONAL([PLATFORM_WIN32], [true])
|
AM_CONDITIONAL([PLATFORM_WIN32], [true])
|
||||||
AM_CONDITIONAL([PLATFORM_LINUX], [false])
|
AM_CONDITIONAL([PLATFORM_LINUX], [false])
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([winsock2.h ws2tcpip.h])
|
||||||
|
AC_SUBST([NET_LIBS], [-lws2_32])
|
||||||
|
|
||||||
#COMMON_LDFLAGS="$COMMON_LDFLAGS -ldbghelp"
|
#COMMON_LDFLAGS="$COMMON_LDFLAGS -ldbghelp"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
#include "../types.hpp"
|
#include "../types.hpp"
|
||||||
#include "../raii.hpp"
|
#include "../raii.hpp"
|
||||||
|
|
||||||
#include <netdb.h>
|
|
||||||
|
|
||||||
#ifdef __WIN32
|
#ifdef __WIN32
|
||||||
#else
|
#else
|
||||||
|
#include <netdb.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user