From: Remi Gacogne Date: Mon, 5 May 2025 08:42:20 +0000 (+0200) Subject: Fix building with GCC 15.1: missing `cstdint` include X-Git-Tag: dnsdist-2.0.0-alpha2~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0cece2fde57774418f7bd18898e2159e9bec58b;p=thirdparty%2Fpdns.git Fix building with GCC 15.1: missing `cstdint` include 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 ``` --- 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