pkgsrc/net/vnc/files/patch-sockets.c
2012-11-08 10:58:07 +00:00

16 lines
621 B
C

$NetBSD: patch-sockets.c,v 1.1 2012/11/08 10:58:08 sborrill Exp $
--- Xvnc/programs/Xserver/hw/vnc/sockets.c.orig Wed Oct 23 19:16:52 2002
+++ Xvnc/programs/Xserver/hw/vnc/sockets.c Wed Oct 23 19:18:31 2002
@@ -512,9 +512,9 @@
#else
addr.su_len = sizeof(struct sockaddr_in);
if (rfbLocalhostOnly)
- addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+ addr.su_sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
else
- addr.sin_addr.s_addr = htonl(INADDR_ANY);
+ addr.su_sin.sin_addr.s_addr = htonl(INADDR_ANY);
#endif
if ((sock = socket(addr.su_family, SOCK_STREAM, 0)) < 0) {