aboutsummaryrefslogtreecommitdiff
path: root/m4/ax_socklen_t.m4
diff options
context:
space:
mode:
authorGert Doering2016-11-13 20:36:45 +0100
committerGert Doering2016-11-13 20:42:34 +0100
commit11eedcd0071e7185fc3011cda4703f5cc75fe979 (patch)
tree0cbf3b2066708e0eae49ba7096c355c16ff685ba /m4/ax_socklen_t.m4
parent9223336a88bc065348d0ce37621bbf2b1087ba0e (diff)
downloadopenvpn-11eedcd0071e7185fc3011cda4703f5cc75fe979.zip
openvpn-11eedcd0071e7185fc3011cda4703f5cc75fe979.tar.gz
Fix compilation on MinGW with -std=c99
commit 9223336a88bc moved the CFLAGS="-std=c99" bit in configure.ac before the "socklen_t" test, which relies on #ifdef WIN32 to decide whether to include <ws2tcpip.h> or <sys/socket.h> - which is no longer defined then, and things explode in interesting ways. Change to _WIN32, which is the "always defined on all compilers" define for this. Signed-off-by: Gert Doering <gert@greenie.muc.de> Acked-by: Steffan Karger <steffan.karger@fox-it.com> Message-Id: <20161113193645.73523-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13032.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'm4/ax_socklen_t.m4')
-rw-r--r--m4/ax_socklen_t.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/ax_socklen_t.m4 b/m4/ax_socklen_t.m4
index cd7cad8..b420a17 100644
--- a/m4/ax_socklen_t.m4
+++ b/m4/ax_socklen_t.m4
@@ -55,7 +55,7 @@ getpeername(0,0,&len);
],
[[
#include <sys/types.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <sys/socket.h>