From 436d1479256117f21740dbd1ed4eb0c136c15de9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Dec 2001 13:03:08 +0000 Subject: Eric's #include fixes for better macos compiles --- lib/connect.c | 4 ++++ lib/getpass.c | 4 +--- lib/hostip.c | 4 +++- lib/sendf.c | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/connect.c b/lib/connect.c index c045ba436..69308df2b 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -44,6 +44,10 @@ #ifdef HAVE_ARPA_INET_H #include #endif +#ifdef HAVE_STDLIB_H +#include /* required for free() prototype, without it, this crashes + on macos 68K */ +#endif #endif #include diff --git a/lib/getpass.c b/lib/getpass.c index 76af6fac9..62f93ffa0 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -35,9 +35,7 @@ * Daniel Stenberg */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include "setup.h" /* setup.h is required for read() prototype */ #ifndef HAVE_GETPASS_R 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 #else @@ -47,6 +46,9 @@ #ifdef HAVE_ARPA_INET_H #include #endif +#ifdef HAVE_STDLIB_H +#include /* required for free() prototypes */ +#endif #ifdef VMS #include #include diff --git a/lib/sendf.c b/lib/sendf.c index fd58220d9..2a0aa78c3 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -27,6 +27,10 @@ #include #include +#ifdef HAVE_SYS_SOCKET_H +#include /* required for send() & recv() prototypes */ +#endif + #ifdef HAVE_UNISTD_H #include #endif -- cgit v1.2.3