From f52177c34907aa595b6e158572d7d04bdd47d5e6 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Sat, 8 Sep 2018 17:08:39 +0200 Subject: [PATCH] rec: Fix building without protobuf support --- pdns/pdns_recursor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 12a38591db..65a8baffe7 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1813,6 +1813,9 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) g_log<(&conn->data[0]); + #ifdef HAVE_PROTOBUF if(t_protobufServer || t_outgoingProtobufServer) { dc->d_requestorId = requestorId; @@ -1820,7 +1823,6 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) dc->d_uuid = (*t_uuidGenerator)(); } - const struct dnsheader* dh = reinterpret_cast(&conn->data[0]); if(t_protobufServer) { try { -- 2.47.2