#include <urcu/config.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define FUTEX_WAIT 0
#define FUTEX_WAKE 1
* on the wait-side in compatibility mode.
*/
-#ifdef CONFIG_URCU_HAVE_FUTEX
+#ifdef CONFIG_RCU_HAVE_FUTEX
#include <sys/syscall.h>
#define futex(...) syscall(__NR_futex, __VA_ARGS__)
#define futex_noasync(uaddr, op, val, timeout, uaddr2, val3) \
compat_futex_async(uaddr, op, val, timeout, uaddr2, val3)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _URCU_FUTEX_H */