From: Peter van Dijk Date: Mon, 24 Feb 2014 09:33:16 +0000 (+0000) Subject: adapt notify to changes in merge of #1291 X-Git-Tag: rec-3.6.0-rc1~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4bca3a928a0e1df46febc1156ad63037c4afe27;p=thirdparty%2Fpdns.git adapt notify to changes in merge of #1291 --- diff --git a/pdns/Makefile.am b/pdns/Makefile.am index 3f884a5240..3c43470729 100644 --- a/pdns/Makefile.am +++ b/pdns/Makefile.am @@ -238,7 +238,7 @@ nproxy_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) notify_SOURCES=notify.cc dnsparser.cc dnsrecords.cc dnsparser.hh \ rcpgenerator.cc rcpgenerator.hh base64.cc base64.hh dnswriter.cc dnslabeltext.cc dnswriter.hh \ sillyrecords.cc selectmplexer.cc nsecrecords.cc base32.cc misc.cc unix_utility.cc \ - logger.cc qtype.cc statbag.cc + logger.cc qtype.cc statbag.cc dns.cc arguments.cc notify_LDFLAGS= @DYNLINKFLAGS@ @THREADFLAGS@ $(BOOST_PROGRAM_OPTIONS_LDFLAGS) notify_LDADD= $(BOOST_PROGRAM_OPTIONS_LIBS) diff --git a/pdns/notify.cc b/pdns/notify.cc index acb60c05ad..6f1eaed5b5 100644 --- a/pdns/notify.cc +++ b/pdns/notify.cc @@ -12,6 +12,7 @@ #include "mplexer.hh" #include "statbag.hh" +#include "arguments.hh" #include "namespaces.hh" using namespace ::boost::multi_index; @@ -21,6 +22,11 @@ namespace po = boost::program_options; po::variables_map g_vm; StatBag S; +ArgvMap &arg() +{ + static ArgvMap arg; + return arg; +} int main(int argc, char** argv) try