Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-01-27 03:53:37 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-01-27 03:56:32 +0400
commit352febe2519b0bb0e004086fa06a27217bdbebbb (patch)
tree4e9dc911187370d810da5af72c003d37eebe8615 /deps
parentccf7b41a69a8037f721a3eb495c2a82a53613634 (diff)
uv: upgrade to 9c76d0d
Diffstat (limited to 'deps')
-rw-r--r--deps/uv/src/unix/udp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/uv/src/unix/udp.c b/deps/uv/src/unix/udp.c
index 3e5de929485..6db0ea1063b 100644
--- a/deps/uv/src/unix/udp.c
+++ b/deps/uv/src/unix/udp.c
@@ -340,6 +340,14 @@ static int uv__bind(uv_udp_t* handle,
goto out;
}
+#ifdef SO_REUSEPORT /* Apple's version of SO_REUSEADDR... */
+ yes = 1;
+ if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &yes, sizeof yes) == -1) {
+ uv__set_sys_error(handle->loop, errno);
+ goto out;
+ }
+#endif
+
if (flags & UV_UDP_IPV6ONLY) {
#ifdef IPV6_V6ONLY
yes = 1;