summaryrefslogtreecommitdiffstats
path: root/net/vino/files/patch-server_libvncserver_sockets.c
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-07-28 17:59:28 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-07-28 17:59:28 +0800
commit1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237 (patch)
tree269784fb803977fe2406c55884942299913dd9a8 /net/vino/files/patch-server_libvncserver_sockets.c
parentf5398fef5609d4dafffe0c761ac0036b7c452f3b (diff)
downloadmarcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar.gz
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar.bz2
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar.lz
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar.xz
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.tar.zst
marcuscom-ports-1581abb4e822cd31a7d71bcf5e5d7e3e86ec9237.zip
Update to 2.27.5.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12514 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net/vino/files/patch-server_libvncserver_sockets.c')
-rw-r--r--net/vino/files/patch-server_libvncserver_sockets.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/vino/files/patch-server_libvncserver_sockets.c b/net/vino/files/patch-server_libvncserver_sockets.c
new file mode 100644
index 000000000..348ea91d3
--- /dev/null
+++ b/net/vino/files/patch-server_libvncserver_sockets.c
@@ -0,0 +1,30 @@
+--- server/libvncserver/sockets.c.orig 2009-02-13 08:11:38.000000000 -0500
++++ server/libvncserver/sockets.c 2009-03-07 20:19:28.000000000 -0500
+@@ -668,6 +669,11 @@ NewSocketListenTCP(struct sockaddr *addr
+ {
+ int sock = -1;
+ int one = 1;
++#ifdef ENABLE_IPV6
++#ifdef IPV6_V6ONLY
++ int off = 0;
++#endif
++#endif
+
+ if ((sock = socket(addr->sa_family, SOCK_STREAM, 0)) < 0)
+ return -1;
+@@ -677,6 +683,15 @@ NewSocketListenTCP(struct sockaddr *addr
+ return -1;
+ }
+
++#ifdef ENABLE_IPV6
++#ifdef IPV6_V6ONLY
++ if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&off, sizeof(off)) < 0) {
++ close(sock);
++ return -1;
++ }
++#endif
++#endif
++
+ if (bind(sock, addr, len) < 0) {
+ close(sock);
+ return -1;