]> granicus.if.org Git - pdns/commitdiff
fix compilation of remotebackend without curl-dev
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 7 Dec 2012 09:30:05 +0000 (09:30 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 7 Dec 2012 09:30:05 +0000 (09:30 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2975 d19b8d6e-7fed-0310-83ef-9ca221ded41b

modules/remotebackend/httpconnector.cc
modules/remotebackend/remotebackend.hh

index 6e629407115c492c6780179c98b00cdb13aeeed7..efb378d5a2c608d461583390a463210fb339acec 100644 (file)
@@ -3,9 +3,13 @@
 #include <unistd.h>
 #include <sys/select.h>
 #include <fcntl.h>
-#include <curl/curl.h>
 #include <boost/foreach.hpp>
 #include <sstream>
+
+#ifdef REMOTEBACKEND_HTTP
+#include <curl/curl.h>
+#endif
+
 #ifndef UNIX_PATH_MAX 
 #define UNIX_PATH_MAX 108
 #endif
index a5b8b02ead7baa50814e2432e5e805ebc63466c3..98445380a22cf28a3e14f0c83696790e3ee415ff 100644 (file)
 #include <rapidjson/rapidjson.h>
 #include <rapidjson/document.h>
 #include "../pipebackend/coprocess.hh"
-#include <curl/curl.h>
 #include "pdns/json.hh"
 
+#ifdef REMOTEBACKEND_HTTP
+#include <curl/curl.h>
+#endif
+
 #define JSON_GET(obj,val,def) (obj.HasMember(val)?obj["" val ""]:def)
 #define JSON_ADD_MEMBER(obj, name, val, alloc) { rapidjson::Value __xval; __xval = val; obj.AddMember(name, __xval, alloc); }