$OpenBSD: patch-src_unix_tcp_c,v 1.2 2018/02/11 18:31:35 pascal Exp $

- we don't support setting IPV6_V6ONLY to anything but 1
  (no support for IPv4-mapped IPv6 addresses)

Index: src/unix/tcp.c
--- src/unix/tcp.c.orig
+++ src/unix/tcp.c
@@ -168,23 +168,6 @@ int uv__tcp_bind(uv_tcp_t* tcp,
   if (setsockopt(tcp->io_watcher.fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)))
     return -errno;
 
-#ifdef IPV6_V6ONLY
-  if (addr->sa_family == AF_INET6) {
-    on = (flags & UV_TCP_IPV6ONLY) != 0;
-    if (setsockopt(tcp->io_watcher.fd,
-                   IPPROTO_IPV6,
-                   IPV6_V6ONLY,
-                   &on,
-                   sizeof on) == -1) {
-#if defined(__MVS__)
-      if (errno == EOPNOTSUPP)
-        return -EINVAL;
-#endif
-      return -errno;
-    }
-  }
-#endif
-
   errno = 0;
   if (bind(tcp->io_watcher.fd, addr, addrlen) && errno != EADDRINUSE) {
     if (errno == EAFNOSUPPORT)
