]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
allow dynamic module loading on OSX - apparently this works since 10.3/10.4
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 21 Jul 2014 13:00:06 +0000 (15:00 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 21 Jul 2014 13:00:06 +0000 (15:00 +0200)
pdns/ueberbackend.cc

index 2eeb480389c5bae3afc178279a9d0fe841be5b2f..64d3ceb05bef9cb1e36b9eadb12f7f4716d95785 100644 (file)
@@ -70,8 +70,6 @@ int UeberBackend::s_s=-1; // ?
 //! Loads a module and reports it to all UeberBackend threads
 bool UeberBackend::loadmodule(const string &name)
 {
-  // TODO: Implement dynamic loading?
-#if !defined(DARWIN)
   void *dlib=dlopen(name.c_str(), RTLD_NOW);
   
   if(dlib == NULL) {
@@ -82,12 +80,6 @@ bool UeberBackend::loadmodule(const string &name)
   }
   
   return true;
-
-#else
-  L << Logger::Warning << "This version doesn't support dynamic loading (yet)." << endl;
-   return false;
-
-#endif
 }
 
 void UeberBackend::go(void)