mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +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:
@@ -34,6 +34,8 @@
|
||||
#define xserver_poll(fds, nfds, timeout) poll(fds, nfds, timeout)
|
||||
#else
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
#define POLLIN 0x01
|
||||
#define POLLPRI 0x02
|
||||
#define POLLOUT 0x04
|
||||
@@ -48,6 +50,8 @@ struct pollfd
|
||||
short revents;
|
||||
};
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
int xserver_poll (struct pollfd *pArray, size_t n_fds, int timeout);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user