[Xcb] Compile error in xcb.h

Lars Noschinski cebewee at gmx.de
Sat Jul 8 18:11:12 PDT 2006


Hello!

(Please CC me on answers, I'm not subscribed to this list)

Latest git change

acba23bdf58f35ba6099520bba8cc81fac24e100 - Fix build on Solaris (use inttypes.h)

breaks compilation for me, as config.h is not included befor the check
for HAVE_STDINT_H, HAVE_INTTYPES_H

The following fixes it for me:

diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
index e19b19d..68cd66a 100644
--- a/xcb/src/xcb.h
+++ b/xcb/src/xcb.h
@@ -29,6 +29,10 @@ #ifndef __XCB_H__
  #define __XCB_H__
  #include <sys/types.h>
  
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
  #if HAVE_STDINT_H
  #include <stdint.h>
  #elif HAVE_INTTYPES_H


More information about the Xcb mailing list