From 8c284792f6d523abce27d5726d7aed42eb89f204 Mon Sep 17 00:00:00 2001 From: pi Date: Tue, 24 May 2016 11:42:06 +0000 Subject: net/krdc: remove FreeBSD 8 compatibility patch The patch was introduced in r374162 in the official ports tree, but is no longer relevant since FreeBSD 8 reached EOL. PR: 209695 Submitted by: groot@kde.org (kde) Originally-by: tcberner --- net/krdc/files/patch-vnc__vncclientthread.cpp | 40 --------------------------- 1 file changed, 40 deletions(-) delete mode 100644 net/krdc/files/patch-vnc__vncclientthread.cpp (limited to 'net/krdc') diff --git a/net/krdc/files/patch-vnc__vncclientthread.cpp b/net/krdc/files/patch-vnc__vncclientthread.cpp deleted file mode 100644 index 55f3adfe12b8..000000000000 --- a/net/krdc/files/patch-vnc__vncclientthread.cpp +++ /dev/null @@ -1,40 +0,0 @@ -Only use TCP_KEEPIDLE, TCP_KEEPINTVL and TCP_KEEPCNT if they exist. - -These options are present only in FreeBSD 9+, so we need this patch to maintain -compatibility with FreeBSD 8. - -Not worth upstreaming, as OS X, Linux, NetBSD, OpenBSD and DragonFlyBSD have -had these options for much longer than us. ---- vnc/vncclientthread.cpp -+++ vnc/vncclientthread.cpp -@@ -606,23 +606,30 @@ void VncClientThread::clientSetKeepalive() - return; - } - -+#ifdef TCP_KEEPIDLE - optval = m_keepalive.intervalSeconds; - if (setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPIDLE, &optval, optlen) < 0) { - kError(5011) << "setsockopt(TCP_KEEPIDLE)" << strerror(errno); - return; - } -+#endif - -+#ifdef TCP_KEEPINTVL - optval = m_keepalive.intervalSeconds; - if (setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPINTVL, &optval, optlen) < 0) { - kError(5011) << "setsockopt(TCP_KEEPINTVL)" << strerror(errno); - return; - } -+#endif - -+#ifdef TCP_KEEPCNT - optval = m_keepalive.failedProbes; - if(setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPCNT, &optval, optlen) < 0) { - kError(5011) << "setsockopt(TCP_KEEPCNT)" << strerror(errno); - return; - } -+#endif -+ - m_keepalive.set = true; - kDebug(5011) << "TCP keepalive set"; - } -- cgit