]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
ax_cpp11.m4: Include <memory> header
authorKhem Raj <raj.khem@gmail.com>
Sat, 27 Feb 2021 07:14:20 +0000 (23:14 -0800)
committerTomek Mrugalski <tomek@isc.org>
Thu, 20 May 2021 09:21:06 +0000 (11:21 +0200)
This is needed for std::shared_ptr
GCC-11 throws errors if header is not included

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
m4macros/ax_cpp11.m4

index f9042fa6d519bf327e1ffcbc4dc55dace72d3cf8..99457f9491df253e2b5a74822f030bc923110e7c 100644 (file)
@@ -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 <thread>
+                         #include <memory>
                          std::shared_ptr<std::thread> th;],
                         [th.reset(new std::thread([[]]() { return; }));
                          th->join();])],