diff --git a/src/bitdht/bdstore.cc b/src/bitdht/bdstore.cc index a073e39..52f6b94 100644 --- a/src/bitdht/bdstore.cc +++ b/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/src/udp/udplayer.cc b/src/udp/udplayer.cc index 591929c..94eeddd 100644 --- a/src/udp/udplayer.cc +++ b/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