os: xserver_poll: skip defining symbols already defined by mingw

mingw already has struct pollfd and POLL* defines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-25 17:46:28 +02:00
committed by Enrico Weigelt
parent c4ebb312d0
commit 8a8c29165a

View File

@@ -32,6 +32,8 @@
#define xserver_poll(fds, nfds, timeout) poll(fds, nfds, timeout)
#else
#ifndef WIN32
#define POLLIN 0x01
#define POLLPRI 0x02
#define POLLOUT 0x04
@@ -46,6 +48,8 @@ struct pollfd
short revents;
};
#endif /* WIN32 */
typedef unsigned long nfds_t;
int xserver_poll (struct pollfd *pArray, nfds_t n_fds, int timeout);