selftests/bpf: get rid of -D__x86_64__
authorAlexei Starovoitov <ast@fb.com>
Wed, 3 May 2017 04:14:43 +0000 (21:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 May 2017 13:51:25 +0000 (09:51 -0400)
commit1c2dd16add7ebd7fc6a47f21a42f502cfed5ec2f
treea9efec88cd7ddbf718c46c8a279d8f72101b0eca
parent6ead18fb18c8182a81d70f24942f9547e56a35d2
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>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/gnu/stubs.h [new file with mode: 0644]