[PATCH 2/2] wininet: fix fd_set redefinition on NetBSD

Frédéric Fauberteau triaxx at NetBSD.org
Tue Dec 4 06:09:03 CST 2018


On NetBSD, time.h includes sys/time.h that includes sys/select.h. It must
be included before winsock2.h that redefines fd_set.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46230
Signed-off-by: Frédéric Fauberteau <triaxx at NetBSD.org>
---
 dlls/wininet/http.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 4122067e41..131d3ac612 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -35,12 +35,13 @@
 #  include <zlib.h>
 #endif
 
+#include <time.h>
+
 #include "winsock2.h"
 #include "ws2ipdef.h"
 
 #include <stdarg.h>
 #include <stdio.h>
-#include <time.h>
 #include <assert.h>
 
 #include "windef.h"
-- 
2.19.2




More information about the wine-devel mailing list