Skip to content

Commit 8b4a5c2

Browse files
author
Peter Zijlstra
committed
selftests/futex: Build without headers nonsense
Make it build without relying on recent headers. Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
1 parent 60035a3 commit 8b4a5c2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tools/testing/selftests/futex/include/futex2test.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@
88

99
#define u64_to_ptr(x) ((void *)(uintptr_t)(x))
1010

11+
#ifndef __NR_futex_waitv
12+
#define __NR_futex_waitv 449
13+
struct futex_waitv {
14+
__u64 val;
15+
__u64 uaddr;
16+
__u32 flags;
17+
__u32 __reserved;
18+
};
19+
#endif
20+
21+
#ifndef FUTEX2_SIZE_U32
22+
#define FUTEX2_SIZE_U32 0x02
23+
#endif
24+
25+
#ifndef FUTEX_32
26+
#define FUTEX_32 FUTEX2_SIZE_U32
27+
#endif
28+
1129
/**
1230
* futex_waitv - Wait at multiple futexes, wake on any
1331
* @waiters: Array of waiters

0 commit comments

Comments
 (0)