From 1c7ac6c47addd6825c4f49f514fe3ffb708e3813 Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Sun, 13 Sep 2009 17:56:56 -0600 Subject: [build] Work around autoconf void* -> VOID__ name conversion bug. The autoconf shipping with OpenBSD 4.5 converts sizeof(void*) to SIZEOF_VOID__ rather than SIZEOF_VOID_P. Work around that by defining SIZEOF_VOID_P if required. --- src/cairo-atomic-private.h | 4 ++++ util/cairo-trace/trace.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/cairo-atomic-private.h b/src/cairo-atomic-private.h index 10c014ce..86e400f4 100644 --- a/src/cairo-atomic-private.h +++ b/src/cairo-atomic-private.h @@ -43,6 +43,10 @@ #include "config.h" #endif +#if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__) +# define SIZEOF_VOID_P SIZEOF_VOID__ +#endif + CAIRO_BEGIN_DECLS #if HAVE_INTEL_ATOMIC_PRIMITIVES diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index a3b36976..2cbc682a 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -22,6 +22,10 @@ #include "config.h" #endif +#if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__) +# define SIZEOF_VOID_P SIZEOF_VOID__ +#endif + #include #include #include -- cgit v1.2.3