From: bert hubert Date: Mon, 5 Jan 2015 12:43:51 +0000 (+0100) Subject: fix up compilation with lua-ipset after dist-recursor, plus fix up compilation w... X-Git-Tag: rec-3.7.0-rc1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24fdd491bf12926753d0f54779a8bb3e84f17e92;p=thirdparty%2Fpdns.git fix up compilation with lua-ipset after dist-recursor, plus fix up compilation w/o lua --- diff --git a/pdns/Makefile-recursor b/pdns/Makefile-recursor index edd6b8a174..2415dc6887 100644 --- a/pdns/Makefile-recursor +++ b/pdns/Makefile-recursor @@ -24,7 +24,7 @@ dns_random.o pubsuffix.o ext/polarssl/library/aes.o dnslabeltext.o \ lua-pdns.o lua-recursor.o randomhelper.o recpacketcache.o dns.o \ reczones.o base32.o nsecrecords.o json.o ws-recursor.o ws-api.o \ version.o responsestats.o webserver.o ext/yahttp/yahttp/reqresp.o ext/yahttp/yahttp/router.o \ -rec-carbon.o secpoll-recursor.o +rec-carbon.o secpoll-recursor.o lua-iputils.o REC_CONTROL_OBJECTS=rec_channel.o rec_control.o arguments.o misc.o \ unix_utility.o logger.o qtype.o diff --git a/pdns/dist-recursor b/pdns/dist-recursor index 163270b36a..c4f39ffec4 100755 --- a/pdns/dist-recursor +++ b/pdns/dist-recursor @@ -34,7 +34,7 @@ ws-recursor.hh ws-api.hh secpoll-recursor.hh \ responsestats.hh webserver.hh" CFILES="syncres.cc misc.cc unix_utility.cc qtype.cc \ -logger.cc arguments.cc lwres.cc pdns_recursor.cc \ +logger.cc arguments.cc lwres.cc pdns_recursor.cc lua-iputils.cc \ recursor_cache.cc dnsparser.cc dnswriter.cc dnsrecords.cc rcpgenerator.cc \ base64.cc zoneparser-tng.cc rec_channel.cc rec_channel_rec.cc rec_control.cc \ selectmplexer.cc epollmplexer.cc kqueuemplexer.cc portsmplexer.cc pdns_hw.cc \ diff --git a/pdns/lua-iputils.cc b/pdns/lua-iputils.cc index 89b8f15545..116bf1035a 100644 --- a/pdns/lua-iputils.cc +++ b/pdns/lua-iputils.cc @@ -1,3 +1,5 @@ +#include "config.h" +#ifdef HAVE_LUA extern "C" { #include #include @@ -343,3 +345,4 @@ pair splitField(const string& inp, char sepa) } #endif +#endif diff --git a/pdns/lua-recursor.cc b/pdns/lua-recursor.cc index 9a5e6ed77c..be8a5b66c4 100644 --- a/pdns/lua-recursor.cc +++ b/pdns/lua-recursor.cc @@ -32,6 +32,11 @@ bool RecursorLua::preresolve(const ComboAddress& remote, const ComboAddress& loc return false; } +bool RecursorLua::prequery(const ComboAddress& remote, const ComboAddress& local,const string& query, const QType& qtype, vector& ret, int& res) +{ + return false; +} + #else