]> granicus.if.org Git - pdns/commitdiff
make sure lua-record compiles without geoip libraries
authorbert hubert <bert.hubert@powerdns.com>
Wed, 13 Dec 2017 20:21:53 +0000 (21:21 +0100)
committerbert hubert <bert.hubert@powerdns.com>
Wed, 13 Dec 2017 20:21:53 +0000 (21:21 +0100)
modules/geoipbackend/geoipbackend.cc
modules/geoipbackend/geoipbackend.hh

index 9fc0b7f7cf44be6181806867628cbce8d9ce7870..6e1a3ba9b7c4a8d1077e58d57e3a5e29a9054b59 100644 (file)
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <yaml-cpp/yaml.h>
 #include "geoipbackend.hh"
+#include <GeoIP.h>
+#include <GeoIPCity.h>
 #include "pdns/dns_random.hh"
 #include <sstream>
 #include <regex.h>
index 02a66a4e80f7af1f3cee3aa26d7cdec005fca17e..b44662a6429c1abe860632f46ff7902630ec5675 100644 (file)
 #include <map>
 #include <string>
 #include <fstream>
-#include <yaml-cpp/yaml.h>
-#include <pthread.h>
 
-#include <GeoIP.h>
-#include <GeoIPCity.h>
+#include <pthread.h>
 #include <sys/types.h>
 #include <dirent.h>
 
@@ -44,6 +41,8 @@
 struct geoip_deleter;
 
 class GeoIPDomain;
+struct GeoIPLookup;
+struct GeoIP;
 
 class GeoIPBackend: public DNSBackend {
 public: