* 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
This commit is contained in:
drbob 2010-07-18 21:22:59 +00:00
parent b5461e0544
commit 0049549eb7
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ bdStore::bdStore(std::string file, bdDhtFunctions *fns)
{ {
if (2 == sscanf(line, "%s %hd", addr_str, &port)) 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); addr.sin_port = htons(port);
bdPeer peer; bdPeer peer;

View File

@ -336,7 +336,7 @@ int UdpLayer::openSocket()
#ifdef UDP_LOOPBACK_TESTING #ifdef UDP_LOOPBACK_TESTING
inet_aton("127.0.0.1", &(laddr.sin_addr)); bdnet_inet_aton("127.0.0.1", &(laddr.sin_addr));
#endif #endif
#ifdef OPEN_UNIVERSAL_PORT #ifdef OPEN_UNIVERSAL_PORT