From 837a26770cb9f1d8d7a4ce40e06db9bb05683702 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 9 Mar 2011 12:39:34 +0000 Subject: Solved compilation problem when compiled for XP --- libX11/src/XlibInt.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libX11') diff --git a/libX11/src/XlibInt.c b/libX11/src/XlibInt.c index 33bbe5458..b5ed3fc8d 100644 --- a/libX11/src/XlibInt.c +++ b/libX11/src/XlibInt.c @@ -146,6 +146,19 @@ xthread_t (*_Xthread_self_fn)(void) = NULL; #define POLLFD_CACHE_SIZE 5 +#if _WIN32_WINNT < _WIN32_WINNT_VISTA +struct pollfd { + + SOCKET fd; + SHORT events; + SHORT revents; + +}; +#define POLLRDNORM 0x0100 +#define POLLRDBAND 0x0200 +#define POLLIN (POLLRDNORM | POLLRDBAND) +#endif + /* initialize the struct array passed to poll() below */ Bool _XPollfdCacheInit( Display *dpy) -- cgit v1.2.3