diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-08-23 07:23:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-08-23 07:23:42 +0000 |
commit | d4731b70505d308064e85bfa1ea1f88904442af2 (patch) | |
tree | af88b993286e656d7b15062a704963142062ccc8 /lib/if2ip.c | |
parent | 8d2c24265d6d8ed74e3d2dc646cb1c3d20f290f3 (diff) | |
download | curl-d4731b70505d308064e85bfa1ea1f88904442af2.tar.gz |
Albert Chin-A-Young's fixes
Diffstat (limited to 'lib/if2ip.c')
-rw-r--r-- | lib/if2ip.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/if2ip.c b/lib/if2ip.c index 420b6df2c..ede5cf08c 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -50,12 +50,19 @@ #if ! defined(WIN32) && ! defined(__BEOS__) +#ifdef NEED_REENTRANT +#define _REENTRANT +#endif + +#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> +#endif +#ifdef HAVE_NETINET_IN_H #include <netinet/in.h> +#endif #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif -#include <netinet/in.h> #ifdef HAVE_SYS_TIME_H /* This must be before net/if.h for AIX 3.2 to enjoy life */ @@ -75,7 +82,7 @@ #include <sys/sockio.h> #endif -#ifdef HAVE_INET_NTOA_R +#ifndef HAVE_INET_NTOA_R_DECL #include "inet_ntoa_r.h" #endif |