aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-03-09 14:00:47 +0000
committermarha <marha@users.sourceforge.net>2011-03-09 14:00:47 +0000
commitc736561c84d9ac30775ff74ef889b9a67c81a12a (patch)
tree7dd0f283194b7ccd096334adcc9b4cc89353460c
parent6b2a63a901118507959c3c92449d681fab2e38eb (diff)
downloadvcxsrv-c736561c84d9ac30775ff74ef889b9a67c81a12a.tar.gz
vcxsrv-c736561c84d9ac30775ff74ef889b9a67c81a12a.tar.bz2
vcxsrv-c736561c84d9ac30775ff74ef889b9a67c81a12a.zip
Solved problem accepting on ipv6 sockets
-rw-r--r--X11/xtrans/Xtranssock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/X11/xtrans/Xtranssock.c b/X11/xtrans/Xtranssock.c
index 7cbb1432d..d6e8384e0 100644
--- a/X11/xtrans/Xtranssock.c
+++ b/X11/xtrans/Xtranssock.c
@@ -1259,7 +1259,11 @@ TRANS(SocketINETAccept) (XtransConnInfo ciptr, int *status)
{
XtransConnInfo newciptr;
+#if defined(IPv6) && defined(AF_INET6)
+ struct sockaddr_storage sockname;
+#else
struct sockaddr_in sockname;
+#endif
SOCKLEN_T namelen = sizeof(sockname);
PRMSG (2, "SocketINETAccept(%p,%d)\n", ciptr, ciptr->fd, 0);