From bd33cc0f47a86a5bd3806c50a575c82c8b070991 Mon Sep 17 00:00:00 2001 From: kwm Date: Mon, 7 Mar 2011 08:48:34 +0000 Subject: Fix with new libnotify. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15373 df743ca5-7f9a-e211-a948-0013205c9059 --- net/vino/files/patch-server_libvncserver_sockets.c | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 net/vino/files/patch-server_libvncserver_sockets.c (limited to 'net/vino/files/patch-server_libvncserver_sockets.c') 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; -- cgit v1.2.3