diff options
author | pi <pi@FreeBSD.org> | 2016-05-24 19:42:06 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-05-24 19:42:06 +0800 |
commit | 8c284792f6d523abce27d5726d7aed42eb89f204 (patch) | |
tree | 58d55b1b6ba76d6ea746515ba52181114e1faddb /net/krdc | |
parent | 97a8712b7ad09d6e60ecb5fe32a4a4aefc0b9eab (diff) | |
download | freebsd-ports-gnome-8c284792f6d523abce27d5726d7aed42eb89f204.tar.gz freebsd-ports-gnome-8c284792f6d523abce27d5726d7aed42eb89f204.tar.zst freebsd-ports-gnome-8c284792f6d523abce27d5726d7aed42eb89f204.zip |
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
Diffstat (limited to 'net/krdc')
-rw-r--r-- | net/krdc/files/patch-vnc__vncclientthread.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
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"; - } |