From: Gert Doering Date: Sun, 13 Nov 2016 15:55:35 +0000 (+0100) Subject: Add in_port_t check to configure.ac X-Git-Tag: v2.4_beta1~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd6714ae0a47a9401898ccc0dd7079f58ba29901;p=thirdparty%2Fopenvpn.git Add in_port_t check to configure.ac commit 8cac9b98d58b97 introduced using in_port_t which is not available on (all?) mingw build environments. Add configure check, falling back to uint16_t. Signed-off-by: Gert Doering Acked-by: Steffan Karger Message-Id: <20161113155535.68355-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13021.html Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index 357ba29e8..e44f61933 100644 --- a/configure.ac +++ b/configure.ac @@ -493,6 +493,12 @@ AC_CHECK_TYPES( [AC_DEFINE([in_addr_t], [uint32_t], [Workaround missing in_addr_t])], [[${SOCKET_INCLUDES}]] ) +AC_CHECK_TYPES( + [in_port_t], + , + [AC_DEFINE([in_port_t], [uint16_t], [Workaround missing in_port_t])], + [[${SOCKET_INCLUDES}]] +) AC_CHECK_TYPE( [struct iphdr], [AC_DEFINE([HAVE_IPHDR], [1], [struct iphdr needed for IPv6 support])],