From: Victor Julien Date: Mon, 16 Dec 2013 12:53:51 +0000 (+0100) Subject: Cygwin: fix compilation X-Git-Tag: suricata-2.0rc1~196 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eeddf969d01cc6758d108c6bf0f14d641222bfc;p=thirdparty%2Fsuricata.git Cygwin: fix compilation tm-threads.c:1190:5: error: unknown type name ‘DWORD’ --- diff --git a/configure.ac b/configure.ac index 167287efb9..73c0c37b2b 100644 --- a/configure.ac +++ b/configure.ac @@ -134,7 +134,7 @@ #endif ]]) - AC_CHECK_HEADERS([windows.h winsock2.h ws2tcpip.h], [], [], + AC_CHECK_HEADERS([windows.h winsock2.h ws2tcpip.h w32api/wtypes.h], [], [], [[#define _X86_ ]]) AC_CHECK_HEADERS([w32api/winbase.h], [], [], diff --git a/src/suricata-common.h b/src/suricata-common.h index 4bee62b026..43c76c19f7 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -193,6 +193,10 @@ #include #endif +#ifdef HAVE_W32API_WTYPES_H +#include +#endif + #if !__CYGWIN__ #ifdef HAVE_WINSOCK2_H #include