solaris 2.5.1 needs the sys/types.h file before the sys/socket.h

This commit is contained in:
Daniel Stenberg 2001-12-11 15:08:27 +00:00
parent e192261788
commit c67f2da283
1 changed files with 3 additions and 0 deletions

View 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 */