diff options
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | lib/connect.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e188bc900..ad40ede97 100644 --- a/configure.ac +++ b/configure.ac @@ -1038,6 +1038,9 @@ dnl default includes #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_NETINET_IN_H +#include <netinet/in.h> +#endif ] ) diff --git a/lib/connect.c b/lib/connect.c index 77bcb56d1..78338de65 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -32,10 +32,15 @@ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_NETINET_IN_H +#include <netinet/in.h> /* <netinet/tcp.h> may need it */ +#endif #ifdef HAVE_NETINET_TCP_H #include <netinet/tcp.h> /* for TCP_NODELAY */ #endif +#ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> +#endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif |