From a97ed621bb18084d3dd80c42be7912865075e2f4 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov <dmitry@codeweavers.com> Date: Fri, 27 Jun 2003 04:04:00 +0000 Subject: [PATCH] Add inclusion of <sys/time.h> needed for struct timeval declaration. Protect some optional headers from inclusion. --- dlls/wininet/netconnection.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index d21c3e6d402..3accfa4b43f 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -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> -- 2.24.1