From 9c8e3f13985cc6f61a1c140612b3be524af868f6 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 24 Jul 2017 12:32:18 +0200 Subject: nxcomp/configure.ac,m4/nx-macros.m4,nxcomp/src/Socket.h: Use AC_CHECK_TYPES to detect if type 'in_addr_t' is available. --- nxcomp/src/Socket.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nxcomp/src') diff --git a/nxcomp/src/Socket.h b/nxcomp/src/Socket.h index 5e7e47705..77837a115 100644 --- a/nxcomp/src/Socket.h +++ b/nxcomp/src/Socket.h @@ -26,6 +26,10 @@ #ifndef Socket_H #define Socket_H +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include @@ -35,6 +39,12 @@ #include #endif +#ifdef HAVE_IN_ADDR_T +#define IN_ADDR_T in_addr_t +#else +#define IN_ADDR_T unsigned +#endif + // // Set socket options. // -- cgit v1.2.3