aboutsummaryrefslogtreecommitdiffstats
path: root/util/network
diff options
context:
space:
mode:
authordtorilov <dtorilov@yandex-team.com>2024-03-28 21:07:32 +0300
committerdtorilov <dtorilov@yandex-team.com>2024-03-28 21:18:22 +0300
commit69da0d084c7045f516e59ff13afeb15a3f313b5d (patch)
tree03a0355dba12f54746d8f24133c1551d8fdaf5f4 /util/network
parent22f953d76634703f1ac2d06ec90fe270ceaafe74 (diff)
downloadydb-69da0d084c7045f516e59ff13afeb15a3f313b5d.tar.gz
WebAssembly in util
b46c1e446c9d0f9393bf688b26db810f60add0f6
Diffstat (limited to 'util/network')
-rw-r--r--util/network/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 4e9ee24ed2..fb9dac7f09 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -273,6 +273,8 @@ void SetSocketTimeout(SOCKET s, long sec, long msec) {
#ifdef SO_SNDTIMEO
#ifdef _darwin_
const timeval timeout = {sec, (__darwin_suseconds_t)msec * 1000};
+ #elif defined(_emscripten_)
+ const timeval timeout = {sec, static_cast<suseconds_t>(msec * 1000)};
#elif defined(_unix_)
const timeval timeout = {sec, msec * 1000};
#else