diff options
-rw-r--r-- | lib/connect.c | 4 | ||||
-rw-r--r-- | lib/getpass.c | 4 | ||||
-rw-r--r-- | lib/hostip.c | 4 | ||||
-rw-r--r-- | 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 <arpa/inet.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> /* required for free() prototype, without it, this crashes + on macos 68K */ +#endif #endif #include <stdio.h> 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 <daniel@haxx.se> */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#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 <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> 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 <stdarg.h> #include <stdlib.h> +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> /* required for send() & recv() prototypes */ +#endif + #ifdef HAVE_UNISTD_H #include <unistd.h> #endif |