summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2015-08-26 10:11:11 +0200
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-09-10 14:34:04 +0100
commitedc04f87c74abacb57782dc947f81a2810a72537 (patch)
tree042ed8f414d7f42e1e06113231b23e7d22ae2b53
parent446ee4b7f7ce1bb75f0f6b23bbb33d4bfe8d7ad3 (diff)
Raise the number of FD on WIN32 as well
Commit 2c94cdb raised the number of file descriptors from 256 to 512 but only for non-WIN32 platforms. The definition of XFD_SETSIZE being duplicated, we need to do the same for WIN32 builds as well otherwise a newer X server trying to use more than 256 clients would fail on that platform. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--Xpoll.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xpoll.h.in b/Xpoll.h.in
index 01be164..2878591 100644
--- a/Xpoll.h.in
+++ b/Xpoll.h.in
@@ -165,7 +165,7 @@ typedef struct fd_set {
#else /* WIN32 */
-#define XFD_SETSIZE 256
+#define XFD_SETSIZE 512
#ifndef FD_SETSIZE
#define FD_SETSIZE XFD_SETSIZE
#endif