aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'nxcomp/src/Socket.h')
-rw-r--r--nxcomp/src/Socket.h10
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.
//