From: Mathieu Desnoyers Date: Mon, 11 May 2009 02:53:36 +0000 (-0400) Subject: Fix arch_ppc precompiler error X-Git-Tag: v0.1~238 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=41e6b690646e062c78616bf9900a883e7ecced59;p=userspace-rcu.git Fix arch_ppc precompiler error Signed-off-by: Mathieu Desnoyers --- diff --git a/arch_ppc.h b/arch_ppc.h index 40d186b..794c9fc 100644 --- a/arch_ppc.h +++ b/arch_ppc.h @@ -28,7 +28,7 @@ #define CONFIG_HAVE_MEM_COHERENCY #ifndef BITS_PER_LONG -#define BITS_PER_LONG (sizeof(unsigned long) * 8) +#define BITS_PER_LONG (__SIZEOF_LONG__ * 8) #endif #define mb() asm volatile("sync":::"memory")