From 6aaa2d3a36a3657242d6ba61aaea780adce648b3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 25 Jul 2025 19:28:34 +0200 Subject: [PATCH] os: ospoll: include winsock2.h on WIN32 instead of misc.h On WIN32 we need to include winsock2.h, but we can't include misc.h here becaues it pulling in X11 headers that are conflicting with win32 headers. Signed-off-by: Enrico Weigelt, metux IT consult --- os/ospoll.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/os/ospoll.c b/os/ospoll.c index 07904dad9..f46a26bbc 100644 --- a/os/ospoll.c +++ b/os/ospoll.c @@ -27,10 +27,13 @@ #include #include +#ifdef WIN32 +#include +#endif + #include "include/fd_notify.h" #include "os/xserver_poll.h" -#include "misc.h" /* for typedef of pointer */ #include "ospoll.h" #include "list.h"