Fix dlls/wininet/netconnection.c compilation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Dmitry Timoshkov <dmitry@codeweavers.com>
    Add inclusion of <sys/time.h> needed for struct timeval declaration.
    Protect some optional headers from inclusion.

--- cvs/hq/wine/dlls/wininet/netconnection.c	Sat Jun 21 08:26:56 2003
+++ wine/dlls/wininet/netconnection.c	Thu Jun 26 21:05:20 2003
@@ -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>
 





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux