Commit 7ec750c0 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] add std:: for memcpy. need this for sunstudio/solaris to build.

parent 041dbf51
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#include <alloc_engine.h> #include <alloc_engine.h>
#include <cstring>
using namespace isc::asiolink; using namespace isc::asiolink;
namespace isc { namespace isc {
...@@ -31,11 +33,11 @@ AllocEngine::IterativeAllocator::increaseAddress(const isc::asiolink::IOAddress& ...@@ -31,11 +33,11 @@ AllocEngine::IterativeAllocator::increaseAddress(const isc::asiolink::IOAddress&
// First we copy the whole address as 16 bytes. // First we copy the whole address as 16 bytes.
if (addr.getFamily()==AF_INET) { if (addr.getFamily()==AF_INET) {
// IPv4 // IPv4
memcpy(packed, addr.getAddress().to_v4().to_bytes().data(), 4); std::memcpy(packed, addr.getAddress().to_v4().to_bytes().data(), 4);
len = 4; len = 4;
} else { } else {
// IPv6 // IPv6
memcpy(packed, addr.getAddress().to_v6().to_bytes().data(), 16); std::memcpy(packed, addr.getAddress().to_v6().to_bytes().data(), 16);
len = 16; len = 16;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment