X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch%2Fppc.h;h=1784ccdfe4aed8663e9706dc99e3ff0833f509eb;hb=da5b715a201a36156fa520b6442db7c46f6fdade;hp=1068b288027bda8a5c1f47ce0229e484de827fc6;hpb=1b85da854e5f034224ea208d96d6ed9d709e7976;p=urcu.git diff --git a/urcu/arch/ppc.h b/urcu/arch/ppc.h index 1068b28..1784ccd 100644 --- a/urcu/arch/ppc.h +++ b/urcu/arch/ppc.h @@ -24,6 +24,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -104,6 +105,14 @@ static inline cycles_t caa_get_cycles(void) } #endif +/* + * Define the membarrier system call number if not yet available in the + * system headers. + */ +#ifndef __NR_membarrier +#define __NR_membarrier 365 +#endif + #ifdef __cplusplus } #endif