Browse Source

[master] fixed build error on solaris. apparently the boost namespace
hid the definition of uint32_t. also, replaced an unused boost header file
(foreach) to a more relevant one (shared_ptr).
may be beyond a super-trivial level, but as an urgent care fix I'll push it
now. it was confirmed on our solaris box.

JINMEI Tatuya 13 years ago
parent
commit
8cea64b69a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/lib/datasrc/tests/database_unittest.cc

+ 5 - 2
src/lib/datasrc/tests/database_unittest.cc

@@ -12,7 +12,7 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 // PERFORMANCE OF THIS SOFTWARE.
 
 
-#include <boost/foreach.hpp>
+#include <boost/shared_ptr.hpp>
 
 
 #include <gtest/gtest.h>
 #include <gtest/gtest.h>
 
 
@@ -33,7 +33,10 @@
 
 
 using namespace isc::datasrc;
 using namespace isc::datasrc;
 using namespace std;
 using namespace std;
-using namespace boost;
+// don't import the entire boost namespace.  It will unexpectedly hide uint32_t
+// for some systems.
+using boost::shared_ptr;
+using boost::dynamic_pointer_cast;
 using namespace isc::dns;
 using namespace isc::dns;
 
 
 namespace {
 namespace {