Skip to content

Commit

Permalink
dnsdist: Fix building with meson without all options enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Sep 27, 2024
1 parent 29d9f63 commit 1814a87
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pdns/dnsdistdist/dnsdist-nghttp2-in.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "dnsdist-nghttp2-in.hh"

#if defined(HAVE_DNS_OVER_HTTPS) && defined(HAVE_NGHTTP2)

#include "dnsdist-dnsparser.hh"
#include "dnsdist-doh-common.hh"
#include "dnsdist-nghttp2-in.hh"
#include "dnsdist-proxy-protocol.hh"
#include "dnsparser.hh"

#if defined(HAVE_DNS_OVER_HTTPS) && defined(HAVE_NGHTTP2)

#if 0
class IncomingDoHCrossProtocolContext : public CrossProtocolContext
{
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/doh3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
#include "libssl.hh"
#include "noinitvector.hh"
#include "stat_t.hh"
#include "dnsdist-idstate.hh"

struct DOH3ServerConfig;
struct DownstreamState;

#ifdef HAVE_DNS_OVER_HTTP3

#include "dnsdist-idstate.hh"
#include "doq-common.hh"

struct DOH3Frontend
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/doq.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
#include "noinitvector.hh"
#include "doq.hh"
#include "stat_t.hh"
#include "dnsdist-idstate.hh"

struct DOQServerConfig;
struct DownstreamState;

#ifdef HAVE_DNS_OVER_QUIC

#include "dnsdist-idstate.hh"
#include "doq-common.hh"

struct DOQFrontend
Expand Down
2 changes: 0 additions & 2 deletions pdns/dnsdistdist/meson/cdb/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
dep_cdb = dependency('', required: false)

dep_cdb = dependency('libcdb', required: false)

if not dep_cdb.found()
Expand Down
4 changes: 2 additions & 2 deletions pdns/dnsdistdist/meson/libsnmp/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
opt_libsnmp = get_option('snmp')

dep_libsnmp = declare_dependency()
dep_libsnmp = dependency('', required: false)

if get_option('snmp')
if opt_libsnmp
snmp_config = find_program('net-snmp-config', required: true)
snmp_ldflags_res = run_command(snmp_config, '--netsnmp-agent-libs', check: true)
snmp_ldflags = snmp_ldflags_res.stdout().strip().split()
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/meson/quiche/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dep_libquiche = declare_dependency()
dep_libquiche = dependency('', required: false)
opt_libquiche = get_option('quiche')

if (get_option('dns-over-quic') or get_option('dns-over-http3')) and opt_libquiche.allowed()
Expand Down

0 comments on commit 1814a87

Please sign in to comment.