]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Fix compilation on MinGW with -std=c99
authorGert Doering <gert@greenie.muc.de>
Sun, 13 Nov 2016 19:36:45 +0000 (20:36 +0100)
committerGert Doering <gert@greenie.muc.de>
Sun, 13 Nov 2016 19:42:34 +0000 (20:42 +0100)
commit11eedcd0071e7185fc3011cda4703f5cc75fe979
tree0cbf3b2066708e0eae49ba7096c355c16ff685ba
parent9223336a88bc065348d0ce37621bbf2b1087ba0e
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>
m4/ax_socklen_t.m4