From: Remi Gacogne Date: Fri, 18 Oct 2024 14:20:37 +0000 (+0200) Subject: dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh` X-Git-Tag: rec-5.2.0-alpha1~21^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=223d815db4fc84fedc0a9006af07f2927d1d58fd;p=thirdparty%2Fpdns.git dnsdist: Add missing `stdexcept` include in `lmdb-safe.hh` 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"); | ``` --- 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;