[Xcb] [PATCH] Allow xcb_send_request with >UIO_MAXIOV iovecs

Julien Cristau jcristau at debian.org
Sat Aug 18 14:23:05 PDT 2012


On Wed, Aug 15, 2012 at 18:21:47 -0400, Peter Harris wrote:

> Unfortunately, AC_USE_SYSTEM_EXTENSIONS didn't work on Debian. Could you
> please try this version and let me know what it does for you?
> 
Looks like config.h gets included too late.  How about this one on top
of Alan's?  (We should probably somehow make sure config.h is the first
thing included from every libxcb source file.)

diff --git a/src/xcb_conn.c b/src/xcb_conn.c
index 69f6580..bdca9d0 100644
--- a/src/xcb_conn.c
+++ b/src/xcb_conn.c
@@ -25,6 +25,9 @@
 
 /* Connection management: the core of XCB. */
 
+#include "xcbint.h"
+#include "xcb.h"
+
 #include <assert.h>
 #include <string.h>
 #include <stdio.h>
@@ -34,8 +37,6 @@
 #include <errno.h>
 #include <limits.h>
 
-#include "xcb.h"
-#include "xcbint.h"
 #if USE_POLL
 #include <poll.h>
 #elif !defined _WIN32
diff --git a/src/xcbint.h b/src/xcbint.h
index f9e5a52..4ae10d5 100644
--- a/src/xcbint.h
+++ b/src/xcbint.h
@@ -28,12 +28,12 @@
 #ifndef __XCBINT_H
 #define __XCBINT_H
 
-#include "bigreq.h"
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include "bigreq.h"
+
 #ifdef GCC_HAS_VISIBILITY
 #pragma GCC visibility push(hidden)
 #endif


Cheers,
Julien


More information about the Xcb mailing list