Parcourir la 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 il y a 13 ans
Parent
commit
8cea64b69a
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  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
 // PERFORMANCE OF THIS SOFTWARE.
 
-#include <boost/foreach.hpp>
+#include <boost/shared_ptr.hpp>
 
 #include <gtest/gtest.h>
 
@@ -33,7 +33,10 @@
 
 using namespace isc::datasrc;
 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;
 
 namespace {