From e24c61ed9dc2d1ea866697f22194344bba7d247a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 21 Mar 2022 09:52:19 +0100 Subject: [PATCH] dnsdist: Fix compilation by adding a missing include in misc.cc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 ’? ``` --- pdns/misc.cc | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2