References: <1479060203-4472-1-git-send-email-steffan@...1856...> <20161113193645.73523-1-gert@...1296...> From: Steffan Karger Message-ID: <995eceb7-cb0d-f219-37c7-6fcd0d767c8a@...1856...> Date: Sun, 13 Nov 2016 20:41:13 +0100 MIME-Version: 1.0 In-Reply-To: <20161113193645.73523-1-gert@...1296...> Subject: Re: [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=windows-1252 Content-Transfer-Encoding: 7bit To: openvpn-devel@lists.sourceforge.net On 13-11-16 20:36, Gert Doering wrote: > 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 > ACK. So many well-hidden bugs... Thanks for figuring this out! -Steffan