diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-24 12:32:18 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-26 10:12:43 +0200 |
commit | 9c8e3f13985cc6f61a1c140612b3be524af868f6 (patch) | |
tree | 70dedce177a325ddec4f634a31c53e4ff14083ba /nxcomp/src | |
parent | 9fa0a6b954e3893f81aff1851c8e363eb0ccb98b (diff) | |
download | nx-libs-9c8e3f13985cc6f61a1c140612b3be524af868f6.tar.gz nx-libs-9c8e3f13985cc6f61a1c140612b3be524af868f6.tar.bz2 nx-libs-9c8e3f13985cc6f61a1c140612b3be524af868f6.zip |
nxcomp/configure.ac,m4/nx-macros.m4,nxcomp/src/Socket.h: Use AC_CHECK_TYPES to detect if type 'in_addr_t' is available.
Diffstat (limited to 'nxcomp/src')
-rw-r--r-- | nxcomp/src/Socket.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 <sys/types.h> #include <sys/ioctl.h> #include <sys/socket.h> @@ -35,6 +39,12 @@ #include <sys/filio.h> #endif +#ifdef HAVE_IN_ADDR_T +#define IN_ADDR_T in_addr_t +#else +#define IN_ADDR_T unsigned +#endif + // // Set socket options. // |