X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Ftile.h;h=eae1161f2203340cc96e764d2298de5983af6450;hp=94dad4057b963c9ce7ef63d32baa9ce065311a64;hb=a59f39055b5ecb77b68cf78b9839aa9e8e4ec332;hpb=f8c43f458c80566d298d539ec518a8be8c7cc861 diff --git a/urcu/arch/tile.h b/urcu/arch/tile.h index 94dad40..eae1161 100644 --- a/urcu/arch/tile.h +++ b/urcu/arch/tile.h @@ -34,11 +34,11 @@ extern "C" { #include /* - * Define the membarrier system call number if not yet available in the - * system headers. tile implements asm-generic/unistd.h system call + * On Linux, define the membarrier system call number if not yet available in + * the system headers. tile implements asm-generic/unistd.h system call * numbers. */ -#ifndef __NR_membarrier +#if (defined(__linux__) && !defined(__NR_membarrier)) #define __NR_membarrier 283 #endif