rculfqueue: LGPL-ize
[urcu.git] / urcu / urcu-futex.h
index 14fb5c0b58e5444dc584d6668e3e233d3de7fe89..69f8961dafca35ad3d67f514600c4f9600074b07 100644 (file)
 
 #include <urcu/config.h>
 
+#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 <sys/syscall.h>
 #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 */
This page took 0.02395 seconds and 4 git commands to generate.