diff options
-rw-r--r-- | lib/socketpair.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/socketpair.c b/lib/socketpair.c index ffdfdad7f..1f0e2e4a4 100644 --- a/lib/socketpair.c +++ b/lib/socketpair.c @@ -37,6 +37,12 @@ #ifdef HAVE_NETDB_H #include <netdb.h> #endif +#ifdef HAVE_NETINET_IN_H +#include <netinet/in.h> /* IPPROTO_TCP */ +#endif +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7f000001 +#endif /* !INADDR_LOOPBACK */ #endif /* !WIN32 */ /* The last 3 #include files should be in this order */ |