From: Matthew Green <[email protected]>

Move the define of FD_SETSIZE before the include of select.h, so that
is actually does something useful.

Signed-off-by: Thomas Klausner <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to