summaryrefslogtreecommitdiff
path: root/lib/if2ip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-08-23 07:23:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-08-23 07:23:42 +0000
commitd4731b70505d308064e85bfa1ea1f88904442af2 (patch)
treeaf88b993286e656d7b15062a704963142062ccc8 /lib/if2ip.c
parent8d2c24265d6d8ed74e3d2dc646cb1c3d20f290f3 (diff)
downloadcurl-d4731b70505d308064e85bfa1ea1f88904442af2.tar.gz
Albert Chin-A-Young's fixes
Diffstat (limited to 'lib/if2ip.c')
-rw-r--r--lib/if2ip.c11
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