X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu%2Furcu-futex.h;h=69f8961dafca35ad3d67f514600c4f9600074b07;hb=a2c502feb1f1510eef3234168bc16a98404694bf;hp=14fb5c0b58e5444dc584d6668e3e233d3de7fe89;hpb=49617de1d80d771ac9a1d45b1710b16fac65e0aa;p=urcu.git diff --git a/urcu/urcu-futex.h b/urcu/urcu-futex.h index 14fb5c0..69f8961 100644 --- a/urcu/urcu-futex.h +++ b/urcu/urcu-futex.h @@ -23,6 +23,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #define FUTEX_WAIT 0 #define FUTEX_WAKE 1 @@ -37,7 +41,7 @@ * on the wait-side in compatibility mode. */ -#ifdef CONFIG_URCU_HAVE_FUTEX +#ifdef CONFIG_RCU_HAVE_FUTEX #include #define futex(...) syscall(__NR_futex, __VA_ARGS__) #define futex_noasync(uaddr, op, val, timeout, uaddr2, val3) \ @@ -55,4 +59,8 @@ extern int compat_futex_async(int *uaddr, int op, int val, compat_futex_async(uaddr, op, val, timeout, uaddr2, val3) #endif +#ifdef __cplusplus +} +#endif + #endif /* _URCU_FUTEX_H */