diff options
author | Michel Lespinasse <walken@google.com> | 2009-11-23 09:22:57 -0800 |
---|---|---|
committer | Darren Hart <dvhltc@us.ibm.com> | 2009-11-23 09:59:33 -0800 |
commit | 06ec805e9339f31345f62c978f842a1bca860a5b (patch) | |
tree | b178c5851e362960390f8ebf8a99945fa7c631a4 | |
parent | 1e42f6995f6cd41dff80177165201104ab04449f (diff) | |
download | futextest-06ec805e9339f31345f62c978f842a1bca860a5b.tar.gz |
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>
-rw-r--r-- | include/futextest.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ typedef volatile u_int32_t futex_t; #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 |