Fix dlls/wininet/netconnection.c compilation
Dmitry Timoshkov
dmitry at baikal.ru
Thu Jun 26 09:53:52 CDT 2003
Hello,
Changelog:
Dmitry Timoshkov <dmitry at 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>
More information about the wine-patches
mailing list