summaryrefslogtreecommitdiff
path: root/Xpoll.h.in
AgeCommit message (Collapse)AuthorFilesLines
2016-05-02Don't let XFD_SETSIZE exceed FD_SETSIZEJames Clarke1-4/+7
This fixes 2c94cdb453bc641246cc8b9a876da9799bee1ce7 on the Hurd, as FD_SETSIZE is only 256, and so anyone using XFD_SETSIZE to iterate over the contents of an fd_set will overrun the array. Signed-off-by: James Clarke <jrtc27@jrtc27.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
2015-09-10Raise the number of FD on WIN32 as wellOlivier Fourdan1-1/+1
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>
2015-07-01Increase the number of file descriptorsOlivier Fourdan1-2/+11
To allow up to 512 clients, the number of file descriptors being monitored need to be increased accordingly. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-03-13Xpoll.h.in: Fix WIN32 check to trigger on MinGW onlyJon TURNEY1-1/+1
MinGW-w64 w32api-headers 3.0.0 define WIN32 in some places they didn't before, which causes this check to turn on for Cygwin, which is not wanted. Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
2009-09-23Don't need an #ifdef when both cases just include the same fileAlan Coopersmith1-8/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-06-12Remove a bunch of garbage for unsupported platforms.Adam Jackson1-28/+2
2009-06-12Remove all trace of X_NOT_STDC_ENV (#6527)Adam Jackson1-4/+0
Seriously C89 already you guys.
2008-05-08Apple: Cleaned up some Apple definitionsJeremy Huddleston1-1/+1
2007-10-30fd_mask needs to be defined on OS X, tooBen Byer1-1/+1
2005-07-22Add includex11dir as a path to the includes, sans X11/.Daniel Stone1-0/+255
Turn Xpoll.h into a generated file. In the modular tree, substitute in whichever of fds_bits or __fds_bits is being used for the member of fd_set on the system; in the monolithic tree, substitute in fds_bits unconditionally, as that's the way it was before thanks to _XOPEN_SOURCE being defined.