summaryrefslogtreecommitdiff
path: root/src/net/sdltcpnet.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-18 18:40:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-18 18:40:59 +0300
commit31cce4c22b369148f77d7092903af9462d8151c8 (patch)
treebd11e598db5ff6e17d3f0b283c44e333ac37d696 /src/net/sdltcpnet.cpp
parente6afa441a57718205c1f62bcbc0a5443fd513aa3 (diff)
downloadplus-31cce4c22b369148f77d7092903af9462d8151c8.tar.gz
plus-31cce4c22b369148f77d7092903af9462d8151c8.tar.bz2
plus-31cce4c22b369148f77d7092903af9462d8151c8.tar.xz
plus-31cce4c22b369148f77d7092903af9462d8151c8.zip
Fix code style.
Diffstat (limited to 'src/net/sdltcpnet.cpp')
-rw-r--r--src/net/sdltcpnet.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/sdltcpnet.cpp b/src/net/sdltcpnet.cpp
index 2bbb9837a..ebe165125 100644
--- a/src/net/sdltcpnet.cpp
+++ b/src/net/sdltcpnet.cpp
@@ -44,6 +44,9 @@
#include "debug.h"
+#if !defined(__native_client__) \
+ && (defined(TCP_THIN_LINEAR_TIMEOUTS) \
+ || defined(TCP_THIN_DUPACK))
// because actual struct is hidden in SDL_net we reinroducing it here
struct TCPsocketHack final
{
@@ -53,6 +56,7 @@ struct TCPsocketHack final
IPaddress localAddress;
int sflag;
};
+#endif
void TcpNet::init()
{