X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Farm.h;fp=urcu%2Farch%2Farm.h;h=5cbca7d7f1d0d523186b40837ce93ff515615128;hp=d7affaabe85685b6c62929073e7baa732ef69a1d;hb=84f4ccb4bcf32c0336a0c7a3a4ba76d90d6dea1b;hpb=ad46005890368f9c306f0c510b3d4b08c47b66f8 diff --git a/urcu/arch/arm.h b/urcu/arch/arm.h index d7affaa..5cbca7d 100644 --- a/urcu/arch/arm.h +++ b/urcu/arch/arm.h @@ -40,10 +40,10 @@ extern "C" { #include /* - * 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 389 #endif