mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
* 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:
parent
b5461e0544
commit
0049549eb7
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user