From a0cece2fde57774418f7bd18898e2159e9bec58b Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 5 May 2025 10:42:20 +0200 Subject: [PATCH] Fix building with GCC 15.1: missing `cstdint` include MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit GCC 15.1 complains about a missing `cstdint` include when building `DNSdist`: ``` In file included from ../doh3.hh:29, from ../doh3.cc:23: ../noinitvector.hh:67:35: error: ‘uint8_t’ was not declared in this scope 67 | using PacketBuffer = NoInitVector; | ^~~~~~~ ../noinitvector.hh:7:1: note: ‘uint8_t’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ 6 | #include +++ |+#include 7 | ../noinitvector.hh:67:42: error: template argument 1 is invalid 67 | using PacketBuffer = NoInitVector; | ^ In file included from ../dnsdist-idstate.hh:27, from ../doh3.hh:48: ../dnscrypt.hh:247:20: error: ‘PacketBuffer’ has not been declared 247 | void parsePacket(PacketBuffer& packet, bool tcp, time_t now); | ^~~~~~~~~~~~ ../dnscrypt.hh:248:31: error: ‘PacketBuffer’ has not been declared 248 | void getDecrypted(bool tcp, PacketBuffer& packet); | ^~~~~~~~~~~~ ../dnscrypt.hh:249:43: error: ‘PacketBuffer’ has not been declared 249 | void getCertificateResponse(time_t now, PacketBuffer& response) const; | ^~~~~~~~~~~~ ../dnscrypt.hh:250:23: err ``` --- pdns/noinitvector.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/pdns/noinitvector.hh b/pdns/noinitvector.hh index cc7efc30e0..741e76e630 100644 --- a/pdns/noinitvector.hh +++ b/pdns/noinitvector.hh @@ -1,5 +1,6 @@ #pragma once +#include #include #include #include -- 2.47.2