X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-static.h;h=5a75dde18630a84908f82b3096cb166a875b8ae6;hb=32c15e4e6fa2c368f4649d904c91e4293a1193e3;hp=44bcd073710e3e98d760c667eb7aa787238bb3ff;hpb=f0708810fe66d7fdcf52903c607ed65c9fa664c7;p=urcu.git diff --git a/urcu-static.h b/urcu-static.h index 44bcd07..5a75dde 100644 --- a/urcu-static.h +++ b/urcu-static.h @@ -56,8 +56,9 @@ extern "C" { /* If the headers do not support SYS_membarrier, statically use RCU_MB */ #ifdef SYS_membarrier -# define MEMBARRIER_EXPEDITED (1 << 0) -# define MEMBARRIER_DELAYED (1 << 1) +# define MEMBARRIER_EXPEDITED (1 << 0) +# define MEMBARRIER_DELAYED (1 << 1) +# define MEMBARRIER_QUERY (1 << 16) # define membarrier(...) syscall(__NR_membarrier, __VA_ARGS__) #else # undef RCU_MEMBARRIER @@ -76,7 +77,12 @@ extern "C" { /* * The signal number used by the RCU library can be overridden with * -DSIGRCU= when compiling the library. + * Provide backward compatibility for liburcu 0.3.x SIGURCU. */ +#ifdef SIGURCU +#define SIGRCU SIGURCU +#endif + #ifndef SIGRCU #define SIGRCU SIGUSR1 #endif