summaryrefslogtreecommitdiff
path: root/deps/uv/src/unix/tcp.c
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-04-22 14:07:50 -0400
committerJames M Snell <jasnell@gmail.com>2018-04-22 12:11:56 -0700
commit63d991b7cf229a713d0d72b51dcb7b52691d7d65 (patch)
treec190c6c3b155a578ab3d50a89cda337accbbb1d0 /deps/uv/src/unix/tcp.c
parent7fcb52c7b2236cbd7db1dc63274a2670fcd2fb9d (diff)
downloadandroid-node-v8-63d991b7cf229a713d0d72b51dcb7b52691d7d65.tar.gz
android-node-v8-63d991b7cf229a713d0d72b51dcb7b52691d7d65.tar.bz2
android-node-v8-63d991b7cf229a713d0d72b51dcb7b52691d7d65.zip
deps: upgrade to libuv 1.20.2
PR-URL: https://github.com/nodejs/node/pull/20129 Fixes: https://github.com/nodejs/node/issues/20112 Fixes: https://github.com/nodejs/node/issues/19903 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'deps/uv/src/unix/tcp.c')
-rw-r--r--deps/uv/src/unix/tcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/uv/src/unix/tcp.c b/deps/uv/src/unix/tcp.c
index 336d8e2920..9a46793fdb 100644
--- a/deps/uv/src/unix/tcp.c
+++ b/deps/uv/src/unix/tcp.c
@@ -164,6 +164,7 @@ int uv__tcp_bind(uv_tcp_t* tcp,
if (setsockopt(tcp->io_watcher.fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)))
return UV__ERR(errno);
+#ifndef __OpenBSD__
#ifdef IPV6_V6ONLY
if (addr->sa_family == AF_INET6) {
on = (flags & UV_TCP_IPV6ONLY) != 0;
@@ -180,6 +181,7 @@ int uv__tcp_bind(uv_tcp_t* tcp,
}
}
#endif
+#endif
errno = 0;
if (bind(tcp->io_watcher.fd, addr, addrlen) && errno != EADDRINUSE) {