summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-14 21:04:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-14 21:04:04 +0300
commita017980be4a11c7895249b761290a00b8af5e797 (patch)
treebb8623c8b06ad4fe98c8b41928dc3b3c721ee4bd /src
parent49cfca1d5fc1ec67768664b7f549174f837bbded (diff)
downloadmanaverse-a017980be4a11c7895249b761290a00b8af5e797.tar.gz
manaverse-a017980be4a11c7895249b761290a00b8af5e797.tar.bz2
manaverse-a017980be4a11c7895249b761290a00b8af5e797.tar.xz
manaverse-a017980be4a11c7895249b761290a00b8af5e797.zip
Disable additional socket login in nacl.
Diffstat (limited to 'src')
-rw-r--r--src/net/sdltcpnet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp
index 4ea659ecf..b891ee3e5 100644
--- a/src/net/sdltcpnet.cpp
+++ b/src/net/sdltcpnet.cpp
@@ -89,6 +89,7 @@ int TcpNet::resolveHost(IPaddress *const address, const char *const host,
TcpNet::Socket TcpNet::open(IPaddress *const ip)
{
const TcpNet::Socket sock = SDLNet_TCP_Open(ip);
+#ifndef __native_client__
if (sock && ip)
{
const TCPsocketHack *const hack
@@ -118,6 +119,7 @@ TcpNet::Socket TcpNet::open(IPaddress *const ip)
}
}
}
+#endif
return sock;
}