bug#79986: include system headers early
authorMichael Haubenwallner <michael.haubenwallner@salomon.at>
Fri, 13 Jun 2014 14:18:34 +0000 (16:18 +0200)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 14 Jun 2014 15:24:37 +0000 (08:24 -0700)
AIX <sys/poll.h> does redefine 'events' to 'reqevents' eventually.
To not have this cause compilation errors, need to include the local
header files after any system header file.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/xcb_in.c

index 14b67ae..ad870c1 100644 (file)
@@ -36,9 +36,6 @@
 #include <stdio.h>
 #include <errno.h>
 
-#include "xcb.h"
-#include "xcbext.h"
-#include "xcbint.h"
 #if USE_POLL
 #include <poll.h>
 #endif
 #include "xcb_windefs.h"
 #endif /* _WIN32 */
 
+#include "xcb.h"
+#include "xcbext.h"
+#include "xcbint.h"
+
 #define XCB_ERROR 0
 #define XCB_REPLY 1
 #define XCB_XGE_EVENT 35