[Xcb] another "no rule to make target `xproto.c'"

Ian Osgood iano at quirkster.com
Thu Jul 6 21:01:29 PDT 2006


On Jul 6, 2006, at 2:33 PM, Vincent Torri wrote:

>
>
>> So, I was missing the xproto.c file from the beginning. Not any more.
>> lixcb-0.9 compiled just fine, although I did have to replace
>> "#include <stdint.h>" by "#include <inttypes.h>" in src/xcb.h file
>> to make it work in my solaris-2.7.
>
> iirc, with autoconf, we can check if stdint.h exists and a varaible
> (__HAVE_SDTINT_H__) is defined. Then we can use it so that we include
> stdint or inttypes, no ?
>
> Vincent
> _______________________________________________

Alex,

Please check whether this patch fixes your build.

Ian

diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
index 639f583..e19b19d 100644
--- a/xcb/src/xcb.h
+++ b/xcb/src/xcb.h
@@ -29,8 +29,11 @@
#define __XCB_H__
#include <sys/types.h>
-/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#if HAVE_STDINT_H
#include <stdint.h>
+#elif HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
/* FIXME: these names conflict with those defined in Xmd.h. */
#ifndef XMD_H



More information about the Xcb mailing list