diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-03-07 16:48:34 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-03-07 16:48:34 +0800 |
commit | bd33cc0f47a86a5bd3806c50a575c82c8b070991 (patch) | |
tree | 0eb5f7268a8041a28c77caca8493c7a1b4a043a5 /net/vino/files/patch-server_libvncserver_sockets.c | |
parent | 06c9475a3fc36fe202c170785d5018844e653b23 (diff) | |
download | marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar.gz marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar.bz2 marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar.lz marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar.xz marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.tar.zst marcuscom-ports-bd33cc0f47a86a5bd3806c50a575c82c8b070991.zip |
Fix with new libnotify.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15373 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.c | 30 |
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; |