From: Otto Moerbeek Date: Tue, 16 Jul 2019 11:27:47 +0000 (+0200) Subject: Fix includes X-Git-Tag: dnsdist-1.4.0-rc3~39^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16f0c288f3c637b6b4eab82f227e15de5e0b1586;p=pdns Fix includes --- diff --git a/pdns/bpf-filter.cc b/pdns/bpf-filter.cc index 62a8b95c1..56418c281 100644 --- a/pdns/bpf-filter.cc +++ b/pdns/bpf-filter.cc @@ -28,6 +28,8 @@ #include "ext/libbpf/libbpf.h" +#include "misc.hh" + static __u64 ptr_to_u64(void *ptr) { return (__u64) (unsigned long) ptr; @@ -188,7 +190,7 @@ BPFFilter::BPFFilter(uint32_t maxV4Addresses, uint32_t maxV6Addresses, uint32_t uint32_t key = 0; int res = bpf_update_elem(d_filtermap.fd, &key, &d_qnamefilter.fd, BPF_ANY); if (res != 0) { - throw std::runtime_error("Error updating BPF filters map: " + stringrerror()); + throw std::runtime_error("Error updating BPF filters map: " + stringerror()); } } @@ -321,7 +323,7 @@ void BPFFilter::block(const DNSName& qname, uint16_t qtype) } if (res != 0) { - throw std::runtime_error("Error adding blocked qname " + qname.toLogString() + ": " + stringerror())); + throw std::runtime_error("Error adding blocked qname " + qname.toLogString() + ": " + stringerror()); } } } @@ -345,7 +347,7 @@ void BPFFilter::unblock(const DNSName& qname, uint16_t qtype) d_qNamesCount--; } else { - throw std::runtime_error("Error removing qname address " + qname.toLogString() + ": " + stringerror())); + throw std::runtime_error("Error removing qname address " + qname.toLogString() + ": " + stringerror()); } } } diff --git a/pdns/capabilities.cc b/pdns/capabilities.cc index 0abb742a3..74a20fa89 100644 --- a/pdns/capabilities.cc +++ b/pdns/capabilities.cc @@ -30,6 +30,7 @@ #endif #include "capabilities.hh" +#include "misc.hh" void dropCapabilities() {