aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-12-04 13:03:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-12-04 13:03:08 +0000
commit436d1479256117f21740dbd1ed4eb0c136c15de9 (patch)
tree8950ebf7265db50952dfd1a38c0b0f2a0c4289c7 /lib/hostip.c
parent4bd78a7df40e1ff3500c94303458b374b14aa7d2 (diff)
Eric's #include fixes for better macos compiles
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index b77f70421..f3a3ccaa5 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -28,7 +28,6 @@
#define _REENTRANT
-
#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__)
#include <winsock.h>
#else
@@ -47,6 +46,9 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h> /* required for free() prototypes */
+#endif
#ifdef VMS
#include <inet.h>
#include <stdlib.h>