summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-12-11 15:08:27 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-12-11 15:08:27 +0000
commitc67f2da283c8cb8dc3cd7c783c73ef0ff8726215 (patch)
tree6b1502debad7e2d3cf7072a70865e9571b1f0448
parente1922617883d5a70a282ed0e9e756a27eeed6bba (diff)
downloadgnurl-c67f2da283c8cb8dc3cd7c783c73ef0ff8726215.tar.gz
gnurl-c67f2da283c8cb8dc3cd7c783c73ef0ff8726215.tar.bz2
gnurl-c67f2da283c8cb8dc3cd7c783c73ef0ff8726215.zip
solaris 2.5.1 needs the sys/types.h file before the sys/socket.h
-rw-r--r--lib/sendf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index ae4ce6737..ad144edd8 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -26,6 +26,9 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> /* required for send() & recv() prototypes */