mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 02:26:38 -04:00
Fix build following a4245a4c6c
.
Obtained from: upstream 81edc181f8 - Update asiolink for boost 1.87
20 lines
937 B
C++
20 lines
937 B
C++
--- src/lib/asiolink/io_address.cc.orig 2024-07-25 08:50:58 UTC
|
|
+++ src/lib/asiolink/io_address.cc
|
|
@@ -37,7 +37,7 @@ IOAddress::IOAddress(const std::string& address_str) {
|
|
// because we'd like to throw our own exception on failure.
|
|
IOAddress::IOAddress(const std::string& address_str) {
|
|
boost::system::error_code err;
|
|
- asio_address_ = ip::address::from_string(address_str, err);
|
|
+ asio_address_ = ip::make_address(address_str, err);
|
|
if (err) {
|
|
isc_throw(IOError, "Failed to convert string to address '"
|
|
<< address_str << "': " << err.message());
|
|
@@ -116,7 +116,7 @@ IOAddress::toUint32() const {
|
|
uint32_t
|
|
IOAddress::toUint32() const {
|
|
if (asio_address_.is_v4()) {
|
|
- return (asio_address_.to_v4().to_ulong());
|
|
+ return (asio_address_.to_v4().to_uint());
|
|
} else {
|
|
isc_throw(BadValue, "Can't convert " << toText()
|
|
<< " address to IPv4.");
|