X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fhppa.h;h=c8d4d057708e1d5fe603697b12200ca54d0d5682;hp=f92b0ab594b43cf801aab944a1b47bf6df82c0b5;hb=1a186a881c195c0f240c0baa813056b0cc1eab91;hpb=81593390d63393f14f2d41523797636bdad19ae5 diff --git a/urcu/arch/hppa.h b/urcu/arch/hppa.h index f92b0ab..c8d4d05 100644 --- a/urcu/arch/hppa.h +++ b/urcu/arch/hppa.h @@ -32,6 +32,14 @@ extern "C" { #include #include +/* + * On Linux, define the membarrier system call number if not yet available in + * the system headers. + */ +#if (defined(__linux__) && !defined(__NR_membarrier)) +#define __NR_membarrier 343 +#endif + #define HAS_CAA_GET_CYCLES typedef unsigned long caa_cycles_t;