X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Farch%2Fppc.h;h=791529ebb1a08ff3db124103474522b77bf0ad15;hb=1a186a881c195c0f240c0baa813056b0cc1eab91;hp=7e2b6218f82ddc4808a775010c8bfd0c6e25ea5c;hpb=3fa182868e25068413fdaa1bef290365e99ab246;p=urcu.git diff --git a/urcu/arch/ppc.h b/urcu/arch/ppc.h index 7e2b621..791529e 100644 --- a/urcu/arch/ppc.h +++ b/urcu/arch/ppc.h @@ -109,10 +109,10 @@ static inline caa_cycles_t caa_get_cycles(void) #endif /* - * Define the membarrier system call number if not yet available in the - * system headers. + * On Linux, define the membarrier system call number if not yet available in + * the system headers. */ -#ifndef __NR_membarrier +#if (defined(__linux__) && !defined(__NR_membarrier)) #define __NR_membarrier 365 #endif