Add FUTEX(WAIT|WAKE)_BITSET opcodes to futextest.h
Older userspace environments may not have the FUTEX_(WAIT|WAKE)_BITSET
opcodes. Conditionally define them in futextest.h.
Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
diff --git a/include/futextest.h b/include/futextest.h
index d961621..7fce3db 100644
--- a/include/futextest.h
+++ b/include/futextest.h
@@ -42,6 +42,12 @@
#define FUTEX_INITIALIZER 0
/* Define the newer op codes if the system header file is not up to date. */
+#ifndef FUTEX_WAIT_BITSET
+#define FUTEX_WAIT_BITSET 9
+#endif
+#ifndef FUTEX_WAKE_BITSET
+#define FUTEX_WAKE_BITSET 10
+#endif
#ifndef FUTEX_WAIT_REQUEUE_PI
#define FUTEX_WAIT_REQUEUE_PI 11
#endif