diff options
author | Alexei Starovoitov <ast@fb.com> | 2017-05-03 07:14:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-03 16:51:25 +0300 |
commit | 1c2dd16add7ebd7fc6a47f21a42f502cfed5ec2f (patch) | |
tree | a9efec88cd7ddbf718c46c8a279d8f72101b0eca /tools/testing/selftests/bpf/gnu/stubs.h | |
parent | 6ead18fb18c8182a81d70f24942f9547e56a35d2 (diff) | |
download | linux-1c2dd16add7ebd7fc6a47f21a42f502cfed5ec2f.tar.xz |
selftests/bpf: get rid of -D__x86_64__
-D__x86_64__ workaround was used to make /usr/include/features.h
to follow expected path through the system include headers.
This is not portable.
Instead define dummy stubs.h which is used by 'clang -target bpf'
Fixes: 6882804c916b ("selftests/bpf: add a test for overlapping packet range checks")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/gnu/stubs.h')
-rw-r--r-- | tools/testing/selftests/bpf/gnu/stubs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/gnu/stubs.h b/tools/testing/selftests/bpf/gnu/stubs.h new file mode 100644 index 000000000000..719225b16626 --- /dev/null +++ b/tools/testing/selftests/bpf/gnu/stubs.h @@ -0,0 +1 @@ +/* dummy .h to trick /usr/include/features.h to work with 'clang -target bpf' */ |