diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-09-13 17:56:56 -0600 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-09-14 13:32:18 +0300 |
commit | 1c7ac6c47addd6825c4f49f514fe3ffb708e3813 (patch) | |
tree | ea723f968596ccb0a1bc82ec456291b4780d14e3 | |
parent | 12470fd7010ea0748c8dcc9014d1cd0f52f51a3b (diff) |
[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.
-rw-r--r-- | src/cairo-atomic-private.h | 4 | ||||
-rw-r--r-- | util/cairo-trace/trace.c | 4 |
2 files changed, 8 insertions, 0 deletions
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 <dlfcn.h> #include <stdbool.h> #include <stdint.h> |