From: Gert Doering Date: Sun, 13 Nov 2016 19:36:45 +0000 (+0100) Subject: Fix compilation on MinGW with -std=c99 X-Git-Tag: v2.4_beta1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11eedcd0071e7185fc3011cda4703f5cc75fe979;p=thirdparty%2Fopenvpn.git 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 --- 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