Re: [Openvpn-devel] [PATCH] Add in_port_t check to configure.ac
On 13-11-16 16:55, Gert Doering wrote: > 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> --- > configure.ac | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/configure.ac b/configure.ac > index 357ba29..e44f619 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])], > ACK -Steffan -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel
[Openvpn-devel] [PATCH] 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--- configure.ac | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 357ba29..e44f619 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])], -- 1.9.1 -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel