From: Khem Raj Date: Sat, 27 Feb 2021 07:14:20 +0000 (-0800) Subject: ax_cpp11.m4: Include header X-Git-Tag: Kea-1.9.8~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d505f7a7d6fac1c00a4467dfcf1e84f2db508bc6;p=thirdparty%2Fkea.git ax_cpp11.m4: Include header This is needed for std::shared_ptr GCC-11 throws errors if header is not included Upstream-Status: Pending Signed-off-by: Khem Raj --- diff --git a/m4macros/ax_cpp11.m4 b/m4macros/ax_cpp11.m4 index f9042fa6d5..99457f9491 100644 --- a/m4macros/ax_cpp11.m4 +++ b/m4macros/ax_cpp11.m4 @@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [#include + #include std::shared_ptr th;], [th.reset(new std::thread([[]]() { return; })); th->join();])],