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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-25 19:28:34 +02:00
parent ebe253fc51
commit 6aaa2d3a36

View File

@@ -27,10 +27,13 @@
#include <stdlib.h>
#include <unistd.h>
#ifdef WIN32
#include <winsock2.h>
#endif
#include "include/fd_notify.h"
#include "os/xserver_poll.h"
#include "misc.h" /* for typedef of pointer */
#include "ospoll.h"
#include "list.h"