From cfe87dac7f2cecc9fac41a5cda062bf120d38777 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Dec 05 2020 16:31:38 +0000 Subject: Fix more missing #includes for gcc-11 --- diff --git a/kea-gcc11.patch b/kea-gcc11.patch index 1a52b59..8d7b963 100644 --- a/kea-gcc11.patch +++ b/kea-gcc11.patch @@ -34,3 +34,27 @@ index a86a346..94451ca 100644 #include #include #include +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 ++ #include + std::shared_ptr 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 ++#include + std::shared_ptr th; + int + main () diff --git a/kea.spec b/kea.spec index aa475f6..7e6498f 100644 --- a/kea.spec +++ b/kea.spec @@ -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 - 1.9.2-2 +- Fix more missing includes for gcc-11 + * Thu Nov 26 2020 Pavel Zhukov - 1.9.2-1 - new version v1.9.2