solaris 2.5.1 needs the sys/types.h file before the sys/socket.h
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Dec 2001 15:08:27 +0000 (15:08 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Dec 2001 15:08:27 +0000 (15:08 +0000)
lib/sendf.c

index ae4ce67..ad144ed 100644 (file)
@@ -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 */