X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=urcu%2Farch%2Fhppa.h;h=c8d4d057708e1d5fe603697b12200ca54d0d5682;hb=d43d2eb27c7fd0b92ac6f40560bfb88817b165bf;hp=f92b0ab594b43cf801aab944a1b47bf6df82c0b5;hpb=f3980c7e98d51ff08fc311513953b3f3430afe2b;p=userspace-rcu.git 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;