summaryrefslogtreecommitdiff
path: root/net/vino/patches/patch-ac
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-01-21 18:20:43 +0000
committerdrochner <drochner@pkgsrc.org>2010-01-21 18:20:43 +0000
commit9bd3f726fd61298a8f4e150dfee30cf185ede76c (patch)
tree6b4b18e699faf1d3a0399697e13cdc4f1c504b63 /net/vino/patches/patch-ac
parent51c5fb1b9ef6cf9d3549cffe26fb08f77dd445b4 (diff)
downloadpkgsrc-9bd3f726fd61298a8f4e150dfee30cf185ede76c.tar.gz
update to 2.28.1
this switches to the Gnome-2.28 branch
Diffstat (limited to 'net/vino/patches/patch-ac')
-rw-r--r--net/vino/patches/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/vino/patches/patch-ac b/net/vino/patches/patch-ac
new file mode 100644
index 00000000000..d8931b38315
--- /dev/null
+++ b/net/vino/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2010/01/21 18:20:43 drochner Exp $
+
+--- server/libvncserver/sockets.c.orig 2009-05-12 11:39:33.000000000 +0000
++++ server/libvncserver/sockets.c
+@@ -671,6 +671,14 @@ NewSocketListenTCP(struct sockaddr *addr
+ if ((sock = socket(addr->sa_family, SOCK_STREAM, 0)) < 0)
+ return -1;
+
++#if defined(__NetBSD__) && defined(ENABLE_IPV6)
++ if (addr->sa_family == AF_INET6) {
++ /* NetBSD defaults to V6ONLY */
++ int no = 0;
++ setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, &no, sizeof(no));
++ }
++#endif
++
+ if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof(one)) < 0) {
+ close(sock);
+ return -1;