[PATCH:xserver] Move X11/Xpoll.h include earlier than sys/select.h

Thomas Klausner wiz at NetBSD.org
Mon Sep 14 09:44:53 PDT 2015


From: Matthew Green <mrg at NetBSD.org>

Assures setting FD_SETSIZE early enough.

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

diff --git a/os/WaitFor.c b/os/WaitFor.c
index 431f1a6..ad9fd3d 100644
--- a/os/WaitFor.c
+++ b/os/WaitFor.c
@@ -56,6 +56,8 @@ SOFTWARE.
 #include <dix-config.h>
 #endif
 
+#include <X11/Xpoll.h>
+
 #ifdef WIN32
 #include <X11/Xwinsock.h>
 #endif
@@ -66,7 +68,6 @@ SOFTWARE.
 #include "misc.h"
 
 #include "osdep.h"
-#include <X11/Xpoll.h>
 #include "dixstruct.h"
 #include "opaque.h"
 #ifdef DPMSExtension
diff --git a/os/connection.c b/os/connection.c
index 3d33c41..71b75e1 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -64,6 +64,8 @@ SOFTWARE.
 #include <dix-config.h>
 #endif
 
+#include <X11/Xpoll.h>
+
 #ifdef WIN32
 #include <X11/Xwinsock.h>
 #endif
@@ -103,7 +105,6 @@ SOFTWARE.
 #endif                          /* WIN32 */
 #include "misc.h"               /* for typedef of pointer */
 #include "osdep.h"
-#include <X11/Xpoll.h>
 #include "opaque.h"
 #include "dixstruct.h"
 #include "xace.h"
diff --git a/os/io.c b/os/io.c
index 96a243d..ae973cf 100644
--- a/os/io.c
+++ b/os/io.c
@@ -57,6 +57,8 @@ SOFTWARE.
 
 #undef DEBUG_COMMUNICATION
 
+#include <X11/Xpoll.h>
+
 #ifdef WIN32
 #include <X11/Xwinsock.h>
 #endif
@@ -74,7 +76,6 @@ SOFTWARE.
 #include <X11/Xproto.h>
 #include "os.h"
 #include "osdep.h"
-#include <X11/Xpoll.h>
 #include "opaque.h"
 #include "dixstruct.h"
 #include "misc.h"
-- 
2.5.2



More information about the xorg-devel mailing list