From: Remi Gacogne Date: Mon, 21 Mar 2022 08:52:19 +0000 (+0100) Subject: dnsdist: Fix compilation by adding a missing include in misc.cc X-Git-Tag: rec-4.7.0-beta1~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11436%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix compilation by adding a missing include in misc.cc Otherwise g++ 11.2.0 complains here: ``` misc.cc: In function ‘int makeIPv6sockaddr(const string&, sockaddr_in6*)’: misc.cc:711:8: error: ‘optional’ is not a member of ‘std’ 711 | std::optional port = std::nullopt; | ^~~~~~~~ misc.cc:61:1: note: ‘std::optional’ is defined in header ‘’; did you forget to ‘#include ’? ``` --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 486511d46e..ac5f74888b 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include