From 11eedcd0071e7185fc3011cda4703f5cc75fe979 Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Sun, 13 Nov 2016 20:36:45 +0100 Subject: [PATCH] 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 or - 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 Acked-by: Steffan Karger 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 --- m4/ax_socklen_t.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/ax_socklen_t.m4 b/m4/ax_socklen_t.m4 index cd7cad8ac..b420a170e 100644 --- a/m4/ax_socklen_t.m4 +++ b/m4/ax_socklen_t.m4 @@ -55,7 +55,7 @@ getpeername(0,0,&len); ], [[ #include -#ifdef WIN32 +#ifdef _WIN32 #include #else #include -- 2.47.2