You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
734 B

  1. From d505f7a7d6fac1c00a4467dfcf1e84f2db508bc6 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 26 Feb 2021 23:14:20 -0800
  4. Subject: [PATCH] ax_cpp11.m4: Include <memory> header
  5. This is needed for std::shared_ptr
  6. GCC-11 throws errors if header is not included
  7. Upstream-Status: Pending
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. m4macros/ax_cpp11.m4 | 1 +
  11. 1 file changed, 1 insertion(+)
  12. --- a/m4macros/ax_cpp11.m4
  13. +++ b/m4macros/ax_cpp11.m4
  14. @@ -182,6 +182,7 @@ for retry in "none" "--std=c++11" "--std
  15. AC_COMPILE_IFELSE(
  16. [AC_LANG_PROGRAM(
  17. [#include <thread>
  18. + #include <memory>
  19. std::shared_ptr<std::thread> th;],
  20. [th.reset(new std::thread([[]]() { return; }));
  21. th->join();])],