X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=urcu%2Farch%2Fs390.h;h=6dc09a3e76c9d48963a5ddc185f07bb84a4f3eae;hp=5985b2014d78513d1eb010fa33edf93f70df1b36;hb=33f0d0b1c3c9ee55e49b6f7bed146e483e3fd935;hpb=bc2433a9853a945a825c244e9ccfe341b73b2ceb diff --git a/urcu/arch/s390.h b/urcu/arch/s390.h index 5985b20..6dc09a3 100644 --- a/urcu/arch/s390.h +++ b/urcu/arch/s390.h @@ -30,6 +30,7 @@ #include #include +#include #ifdef __cplusplus extern "C" { @@ -50,6 +51,14 @@ static inline cycles_t caa_get_cycles (void) return cycles; } +/* + * Define the membarrier system call number if not yet available in the + * system headers. + */ +#ifndef __NR_membarrier +#define __NR_membarrier 356 +#endif + #ifdef __cplusplus } #endif