diff --git a/libbitdht/src/bitdht/bdstore.cc b/libbitdht/src/bitdht/bdstore.cc index a073e3986..52f6b9468 100644 --- a/libbitdht/src/bitdht/bdstore.cc +++ b/libbitdht/src/bitdht/bdstore.cc @@ -62,7 +62,7 @@ bdStore::bdStore(std::string file, bdDhtFunctions *fns) { if (2 == sscanf(line, "%s %hd", addr_str, &port)) { - if (inet_aton(addr_str, &(addr.sin_addr))) + if (bdnet_inet_aton(addr_str, &(addr.sin_addr))) { addr.sin_port = htons(port); bdPeer peer; diff --git a/libbitdht/src/udp/udplayer.cc b/libbitdht/src/udp/udplayer.cc index 591929ce3..94eeddd15 100644 --- a/libbitdht/src/udp/udplayer.cc +++ b/libbitdht/src/udp/udplayer.cc @@ -336,7 +336,7 @@ int UdpLayer::openSocket() #ifdef UDP_LOOPBACK_TESTING - inet_aton("127.0.0.1", &(laddr.sin_addr)); + bdnet_inet_aton("127.0.0.1", &(laddr.sin_addr)); #endif #ifdef OPEN_UNIVERSAL_PORT