Fix more missing #includes for gcc-11

This commit is contained in:
Jeff Law 2020-12-05 09:31:38 -07:00
parent 56971574fb
commit cfe87dac7f
2 changed files with 28 additions and 1 deletions

View File

@ -34,3 +34,27 @@ index a86a346..94451ca 100644
#include <exceptions/exceptions.h>
#include <dhcpsrv/network_state.h>
#include <dhcpsrv/timer_mgr.h>
diff --git a/m4macros/ax_cpp11.m4 b/m4macros/ax_cpp11.m4
index 8efa2e1..9cd83f2 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 <thread>
+ #include <memory>
std::shared_ptr<std::thread> th;],
[th.reset(new std::thread([[]]() { return; }));
th->join();])],
diff --git a/configure b/configure
index 3f52de5..1002d60 100755
--- a/configure
+++ b/configure
@@ -16895,6 +16895,7 @@ $as_echo_n "checking thread support... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <thread>
+#include <memory>
std::shared_ptr<std::thread> th;
int
main ()

View File

@ -6,7 +6,7 @@
Name: kea
Version: 1.9.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: DHCPv4, DHCPv6 and DDNS server from ISC
License: MPLv2.0 and Boost
@ -220,6 +220,9 @@ EOF
%changelog
* Sat Dec 05 2020 Jeff Law <law@redhat.com> - 1.9.2-2
- Fix more missing includes for gcc-11
* Thu Nov 26 2020 Pavel Zhukov <pzhukov@redhat.com> - 1.9.2-1
- new version v1.9.2