]> granicus.if.org Git - curl/commitdiff
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 ae4ce67376d48b541d83cf8b334054d00da84f49..ad144edd884c25ffafa1a617d9bb2e313467b713 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 */