summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2015-07-23 13:55:18 +0200
committerThomas Klausner <wiz@NetBSD.org>2015-07-23 13:55:52 +0200
commit9e64669db3b19ce11b40e084cf2d366bfd52826f (patch)
tree6487cb8a52e87209237b7da8e2fd49dbdecff531 /os
parent75be718a55376d39b0e517da33ef7a7557ac8f20 (diff)
Include config.h first, and add comment about Xpoll.h.
(To avoid having this header moved lower.) Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'os')
-rw-r--r--os/connection.c1
-rw-r--r--os/io.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/os/connection.c b/os/connection.c
index b5fa210..34458d7 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 Xpoll.h early for possible FD_SETSIZE re-definition */
#include "X11/Xpoll.h"
#include <stdlib.h>
#include <X11/Xtrans/Xtrans.h>
diff --git a/os/io.c b/os/io.c
index 8ebb8e4..8259b2f 100644
--- a/os/io.c
+++ b/os/io.c
@@ -46,10 +46,11 @@ in this Software without prior written authorization from The Open Group.
* THIS SOFTWARE.
*/
-#include "X11/Xpoll.h"
-
#include "config.h"
+/* include Xpoll.h early for possible FD_SETSIZE re-definition */
+#include "X11/Xpoll.h"
+
#include <X11/Xtrans/Xtrans.h>
#include <stdio.h>
#include <errno.h>