*/
#include <urcu/config.h>
+#include <urcu/syscall-compat.h>
+
#include <errno.h>
#include <stdint.h>
#include <time.h>
extern int compat_futex_async(int32_t *uaddr, int op, int32_t val,
const struct timespec *timeout, int32_t *uaddr2, int32_t val3);
-#ifdef CONFIG_RCU_HAVE_FUTEX
+#if (defined(__linux__) && defined(__NR_futex))
+
+/* For backwards compat */
+#define CONFIG_RCU_HAVE_FUTEX 1
#include <unistd.h>
#include <errno.h>