From: Gert Doering Date: Sun, 13 Nov 2016 20:36:45 +0100 Message-Id: <20161113193645.73523-1-gert@...1296...> In-Reply-To: <1479060203-4472-1-git-send-email-steffan@...1856...> References: <1479060203-4472-1-git-send-email-steffan@...1856...> Subject: [Openvpn-devel] [PATCH] Fix compilation on MinGW with -std=c99 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net 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 --- 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 cd7cad8..b420a17 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 -- 1.9.1