diff options
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 4 |
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> |