From 223d815db4fc84fedc0a9006af07f2927d1d58fd Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 18 Oct 2024 16:20:37 +0200 Subject: [PATCH] dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It was only included for non-dnsdist contexts, but `std::runtime_error` is used in all contexts and gcc version 14.2.1 20240910 (at least) is not happy about it: ``` In file included from ext/lmdb-safe/lmdb-safe.cc:2: ext/lmdb-safe/lmdb-safe.hh: In member function ‘int MDBROTransactionImpl::get(MDB_dbi, const MDBInVal&, MDBOutVal&)’: ext/lmdb-safe/lmdb-safe.hh:379:18: error: ‘runtime_error’ is not a member of ‘std’ 379 | throw std::runtime_error("Attempt to use a closed RO transaction for get"); | ``` --- ext/lmdb-safe/lmdb-safe.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/lmdb-safe/lmdb-safe.hh b/ext/lmdb-safe/lmdb-safe.hh index 8190f16ca7..1fc86bdc0f 100644 --- a/ext/lmdb-safe/lmdb-safe.hh +++ b/ext/lmdb-safe/lmdb-safe.hh @@ -2,6 +2,7 @@ #include "config.h" +#include #include #include #include @@ -18,7 +19,6 @@ #include #include #include -#include #endif using std::string_view; -- 2.47.2