mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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:
committed by
Enrico Weigelt
parent
c4ebb312d0
commit
8a8c29165a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user