[PATCH:xproto 1/3] Fix FD_SETSIZE definition.

Thomas Klausner wiz at NetBSD.org
Fri Jul 17 01:24:17 PDT 2015


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



More information about the xorg-devel mailing list