Browse Source

Fix includes and calls to boost::bind()

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3841 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
2744ad516b
2 changed files with 3 additions and 2 deletions
  1. 1 0
      src/lib/nsas/nameserver_address_store.cc
  2. 2 2
      src/lib/nsas/zone_entry.cc

+ 1 - 0
src/lib/nsas/nameserver_address_store.cc

@@ -17,6 +17,7 @@
 #include <boost/thread.hpp>
 #include <boost/shared_ptr.hpp>
 #include <boost/foreach.hpp>
+#include <boost/bind.hpp>
 
 #include <config.h>
 #include <dns/rdataclass.h>

+ 2 - 2
src/lib/nsas/zone_entry.cc

@@ -20,7 +20,7 @@
 
 #include <algorithm>
 #include <boost/foreach.hpp>
-#include <boost/random.hpp>
+#include <boost/bind.hpp>
 #include <dns/rrttl.h>
 #include <dns/rdataclass.h>
 
@@ -137,7 +137,7 @@ class ZoneEntry::ResolverCallback : public ResolverInterface::Callback {
                             string ns_name_str(ns_name.toText());
                             pair<bool, NameserverPtr> from_hash(
                                 entry_->nameserver_table_->getOrAdd(HashKey(
-                                ns_name_str, entry_->class_code_), bind(
+                                ns_name_str, entry_->class_code_), boost::bind(
                                 newNs, &ns_name_str, &entry_->class_code_)));
                             // Make it at the front of the list
                             if (from_hash.first) {