aboutsummaryrefslogtreecommitdiff
path: root/lib/http.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/http.c
parent8d2c24265d6d8ed74e3d2dc646cb1c3d20f290f3 (diff)
Albert Chin-A-Young's fixes
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index fae22816f..0632f6084 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -38,9 +38,11 @@
* ------------------------------------------------------------
****************************************************************************/
+#ifdef NEED_REENTRANT
#define _REENTRANT /* Necessary to use in Solaris, since the silly guys at Sun
made the localtime_r() prototype dependent on it (or
_POSIX_C_SOURCE or _POSIX_PTHREAD_SEMANTICS). */
+#endif
/* -- WIN32 approved -- */
#include <stdio.h>
@@ -63,7 +65,9 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#include <sys/time.h>
#ifdef HAVE_TIME_H