Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / build / feature / test-libbpf.c
blobcd9989f521195cba0b8abd2bf3bf9f5a5dbe27ca
1 // SPDX-License-Identifier: GPL-2.0
2 #include <bpf/libbpf.h>
4 #if !defined(LIBBPF_MAJOR_VERSION) || (LIBBPF_MAJOR_VERSION < 1)
5 #error At least libbpf 1.0 is required for Linux tools.
6 #endif
8 int main(void)
10 return bpf_object__open("test") ? 0 : -1;