summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-30 20:33:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-30 20:33:23 +0300
commit5015c59af9d28b3a3bbedfd54b3827dd96597efa (patch)
treeb9535924f378ce192c5ab150a3c9738213abbc80 /src/net/sdltcpnet.cpp
parentd4d588a10e37bcd0f8653e697952f21602b8d0e9 (diff)
downloadmv-5015c59af9d28b3a3bbedfd54b3827dd96597efa.tar.gz
mv-5015c59af9d28b3a3bbedfd54b3827dd96597efa.tar.bz2
mv-5015c59af9d28b3a3bbedfd54b3827dd96597efa.tar.xz
mv-5015c59af9d28b3a3bbedfd54b3827dd96597efa.zip
Fix code style.
Diffstat (limited to 'src/net/sdltcpnet.cpp')
-rw-r--r--src/net/sdltcpnet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp
index 7530e0f53..103620a5b 100644
--- a/src/net/sdltcpnet.cpp
+++ b/src/net/sdltcpnet.cpp
@@ -89,7 +89,9 @@ 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 !defined(__native_client__) \
+ || defined(TCP_THIN_LINEAR_TIMEOUTS) \
+ || defined(TCP_THIN_DUPACK)
if (sock && ip)
{
const TCPsocketHack *const hack