configure: Avoid compile failure

This commit is contained in:
Tatsuhiro Tsujikawa 2021-08-31 16:49:14 +09:00
parent 8e7e40d0cc
commit a87ea20b7c
1 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
]],
[[
std::vector<std::future<int>> v;
(void)v;
]])],
[AC_DEFINE([HAVE_STD_FUTURE], [1],
[Define to 1 if you have the `std::future`.])
@ -570,6 +571,7 @@ if test "x${request_libbpf}" != "xno"; then
]],
[[
enum bpf_stats_type foo;
(void)foo;
]])],
[have_bpf_stats_type=yes],
[have_bpf_stats_type=no])