1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/net/tigervnc/files/patch-unix_vncserver
Carlos J. Puga Medina 8e1a655ea0 net/tigervnc: update to 1.8.0
- Remove CONFLICST with vnc as net/vnc no longer exists
- Pet portlint, move LIB_DEPENDS up and regenerate patches with make makepatch

Changes: https://github.com/TigerVNC/tigervnc/releases/tag/v1.8.0

PR:		219566
Submitted by:	Koichiro IWAO <meta+ports@vmeta.jp> (maintainer)
2017-05-26 22:59:52 +00:00

21 lines
749 B
Plaintext

--- unix/vncserver.orig 2017-05-16 13:53:28 UTC
+++ unix/vncserver
@@ -532,7 +532,7 @@ sub CheckDisplayNumber
socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n";
eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))';
- if (!bind(S, pack('S n x12', $AF_INET, 6000 + $n))) {
+ if (!bind(S, sockaddr_in(6000 + $n, &INADDR_ANY))) {
close(S);
return 0;
}
@@ -540,7 +540,7 @@ sub CheckDisplayNumber
socket(S, $AF_INET, $SOCK_STREAM, 0) || die "$prog: socket failed: $!\n";
eval 'setsockopt(S, &SOL_SOCKET, &SO_REUSEADDR, pack("l", 1))';
- if (!bind(S, pack('S n x12', $AF_INET, 5900 + $n))) {
+ if (!bind(S, sockaddr_in(5900 + $n, &INADDR_ANY))) {
close(S);
return 0;
}