]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix build error when only protobuf is enabled 16281/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Oct 2025 13:11:56 +0000 (15:11 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Oct 2025 13:11:56 +0000 (15:11 +0200)
The build fails with:
```
../dnsdist-protobuf.cc: In member function ‘void DNSDistProtoBufMessage::serialize(std::string&) const’:
../dnsdist-protobuf.cc:205:7: error: ‘vinfolog’ was not declared in this scope
  205 |       vinfolog("Error while parsing the RRs from a response packet to add them to the protobuf message: %s", exp.what());
      |       ^~~~~~~~
```
because of a missing header.

Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/dnsdistdist/dnsdist-protobuf.cc

index 73f4e43f54b129d3f4f11cb6cb8c43c1cc5b026a..2f984fc92b7d4fc86e510fd80e4e68bce321c1bd 100644 (file)
@@ -27,6 +27,7 @@
 #include "base64.hh"
 #include "dnsdist.hh"
 #include "dnsdist-protobuf.hh"
+#include "dolog.hh"
 #include "protozero.hh"
 
 DNSDistProtoBufMessage::DNSDistProtoBufMessage(const DNSQuestion& dnsquestion) :