[PATCH:xfs 1/2] FD_SETSIZE fixes.

Thomas Klausner wiz at NetBSD.org
Sun Jul 19 00:56:22 PDT 2015


From: Matthew Green <mrg at NetBSD.org>

Move X11/Xpoll.h include earlier than sys/select.h to avoid missing
out on setting FD_SETSIZE early enough.

Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
 os/connection.c | 2 +-
 os/io.c         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/os/connection.c b/os/connection.c
index caaa6c4..b5fa210 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -69,6 +69,7 @@ in this Software without prior written authorization from The Open Group.
 
 #include	"config.h"
 
+#include	"X11/Xpoll.h"
 #include	<stdlib.h>
 #include	<X11/Xtrans/Xtrans.h>
 #include	<stdlib.h>
@@ -84,7 +85,6 @@ in this Software without prior written authorization from The Open Group.
 #include	<X11/fonts/FS.h>
 #include	<X11/fonts/FSproto.h>
 #include	"clientstr.h"
-#include	"X11/Xpoll.h"
 #include	"osdep.h"
 #include	"globals.h"
 #include	"osstruct.h"
diff --git a/os/io.c b/os/io.c
index 124ecd8..8ebb8e4 100644
--- a/os/io.c
+++ b/os/io.c
@@ -46,6 +46,8 @@ in this Software without prior written authorization from The Open Group.
  * THIS SOFTWARE.
  */
 
+#include	"X11/Xpoll.h"
+
 #include	"config.h"
 
 #include	<X11/Xtrans/Xtrans.h>
@@ -57,7 +59,6 @@ in this Software without prior written authorization from The Open Group.
 
 #include	<X11/fonts/FSproto.h>
 #include	"clientstr.h"
-#include	"X11/Xpoll.h"
 #include	"osdep.h"
 #include	"globals.h"
 #include	"dispatch.h"
-- 
2.4.6



More information about the xorg-devel mailing list