Add inclusion of <sys/time.h> needed for struct timeval declaration.

Protect some optional headers from inclusion.
This commit is contained in:
Dmitry Timoshkov 2003-06-27 04:04:00 +00:00 committed by Alexandre Julliard
parent 72659c998f
commit a97ed621bb
1 changed files with 9 additions and 2 deletions

View File

@ -23,11 +23,18 @@
#include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#include <unistd.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>