b1513e4453
Don't override ${CC} when compiling imake Install Xvnc sgid root, as Xsun creates /tmp/.X11-* 770.
16 lines
612 B
Text
16 lines
612 B
Text
$NetBSD: patch-ai,v 1.1 2002/10/23 18:16:59 bouyer 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) {
|