aboutsummaryrefslogtreecommitdiff
path: root/libX11
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-09 12:39:34 +0000
committermarha <marha@users.sourceforge.net>2011-03-09 12:39:34 +0000
commit837a26770cb9f1d8d7a4ce40e06db9bb05683702 (patch)
treede3b188475cf5a830d392d645c109362a46a54e0 /libX11
parentee3ac3eb8b9ce33fe11c561dd85b9ec3befb7101 (diff)
downloadvcxsrv-837a26770cb9f1d8d7a4ce40e06db9bb05683702.tar.gz
vcxsrv-837a26770cb9f1d8d7a4ce40e06db9bb05683702.tar.bz2
vcxsrv-837a26770cb9f1d8d7a4ce40e06db9bb05683702.zip
Solved compilation problem when compiled for XP
Diffstat (limited to 'libX11')
-rw-r--r--libX11/src/XlibInt.c13
1 files changed, 13 insertions, 0 deletions
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)