summaryrefslogtreecommitdiffstats
path: root/WebServer/Socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebServer/Socket.cpp')
-rw-r--r--WebServer/Socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebServer/Socket.cpp b/WebServer/Socket.cpp
index 2dde93b22..82c76a8f1 100644
--- a/WebServer/Socket.cpp
+++ b/WebServer/Socket.cpp
@@ -98,7 +98,9 @@ Socket::Socket() :
if (!IsValid())
{
+#if !defined(ANDROID_NDK)
throw "INVALID_SOCKET";
+#endif
}
refCounter_ = new int(1);
@@ -354,7 +356,9 @@ SocketSelect::SocketSelect(Socket const * const s1, Socket const * const s2, Typ
}
if (select(Highest + 1, &fds_, NULL, NULL, NULL) == SOCKET_ERROR)
{
+#if !defined(ANDROID_NDK)
throw "Error in select";
+#endif
}
}