diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/sdltcpnet.cpp | 2 |
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; } |