summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2006-07-07 07:18:41 -0700
committerIan Osgood <iano@quirkster.com>2006-07-07 07:18:41 -0700
commit8ba93ebb757706ae8dcf5af57c6e3812f72de80e (patch)
tree38bd7a33accaa77a7bf8c4e85699653575b42691
parente0574a617b9133cd728be8ea3618ef1312eeebbf (diff)
Fix build on Solaris (use inttypes.h)
-rw-r--r--src/xcb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xcb.h b/src/xcb.h
index 639f583..e19b19d 100644
--- a/src/xcb.h
+++ b/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