[PATCH:xproto 1/3] Fix FD_SETSIZE definition.
Thomas Klausner
wiz at NetBSD.org
Mon Sep 14 09:46:04 PDT 2015
Can someone please review this set?
Thanks,
Thomas
On Fri, Jul 17, 2015 at 10:24:17AM +0200, Thomas Klausner wrote:
> From: Matthew Green <mrg at NetBSD.org>
>
> Move the define of FD_SETSIZE before the include of select.h, so that
> is actually does something useful.
>
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
> ---
> Xpoll.h.in | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/Xpoll.h.in b/Xpoll.h.in
> index 01be164..6716e8b 100644
> --- a/Xpoll.h.in
> +++ b/Xpoll.h.in
> @@ -54,6 +54,12 @@ from The Open Group.
>
> #ifndef USE_POLL
>
> +#define XFD_SETSIZE 512
> +
> +#ifndef FD_SETSIZE
> +#define FD_SETSIZE XFD_SETSIZE
> +#endif
> +
> #include <X11/Xos.h>
>
> #include <sys/select.h> /* Get the FD_* macros. */
> @@ -67,12 +73,6 @@ typedef long fd_mask;
> # endif
> #endif
>
> -#define XFD_SETSIZE 512
> -
> -#ifndef FD_SETSIZE
> -#define FD_SETSIZE XFD_SETSIZE
> -#endif
> -
> #ifndef NBBY
> #define NBBY 8 /* number of bits in a byte */
> #endif
> --
> 2.4.5
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
More information about the xorg-devel
mailing list