From 0049549eb73eafdf5a5da949c3bba11944d2e89f Mon Sep 17 00:00:00 2001 From: drbob Date: Sun, 18 Jul 2010 21:22:59 +0000 Subject: [PATCH] * changed inet_aton into bdnet_inet_aton for windows compatibility git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3304 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libbitdht/src/bitdht/bdstore.cc | 2 +- libbitdht/src/udp/udplayer.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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