[116881] trunk/dports/kde/krdc

nicos at macports.org nicos at macports.org
Sun Feb 9 05:35:21 PST 2014


Revision: 116881
          https://trac.macports.org/changeset/116881
Author:   nicos at macports.org
Date:     2014-02-09 05:35:20 -0800 (Sun, 09 Feb 2014)
Log Message:
-----------
krdc: fixing build on systems other than Mavericks

Modified Paths:
--------------
    trunk/dports/kde/krdc/Portfile
    trunk/dports/kde/krdc/files/patch-vncclientthread.diff

Modified: trunk/dports/kde/krdc/Portfile
===================================================================
--- trunk/dports/kde/krdc/Portfile	2014-02-09 13:18:47 UTC (rev 116880)
+++ trunk/dports/kde/krdc/Portfile	2014-02-09 13:35:20 UTC (rev 116881)
@@ -6,6 +6,7 @@
 
 name                krdc
 version             4.12.2
+revision            1
 categories          kde kde4
 license             GPL-2+ LGPL-2+
 maintainers         nicos openmaintainer

Modified: trunk/dports/kde/krdc/files/patch-vncclientthread.diff
===================================================================
--- trunk/dports/kde/krdc/files/patch-vncclientthread.diff	2014-02-09 13:18:47 UTC (rev 116880)
+++ trunk/dports/kde/krdc/files/patch-vncclientthread.diff	2014-02-09 13:35:20 UTC (rev 116881)
@@ -1,16 +1,23 @@
---- vnc/vncclientthread.cpp.orig	2013-11-28 05:36:28.000000000 +0900
-+++ vnc/vncclientthread.cpp	2013-12-24 20:00:11.000000000 +0900
-@@ -29,6 +29,13 @@
- #include <QThreadStorage>
- #include <QTimer>
+--- vnc/vncclientthread.cpp.orig	2014-01-28 07:52:13.000000000 +0900
++++ vnc/vncclientthread.cpp	2014-02-09 20:59:28.000000000 +0900
+@@ -601,6 +601,12 @@
  
-+#ifndef SOL_TCP
-+# define SOL_TCP IPPROTO_TCP
+     // Try to set the option active
+     optval = 1;
++#ifdef __APPLE__
++    if (setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPALIVE, &optval, optlen) < 0) {
++        kError(5011) << "setsockopt(TCP_KEEPALIVE)" << strerror(errno);
++        return;
++    }
++#else
+     if (setsockopt(cl->sock, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen) < 0) {
+         kError(5011) << "setsockopt(SO_KEEPALIVE)" << strerror(errno);
+         return;
+@@ -623,6 +629,7 @@
+         kError(5011) << "setsockopt(TCP_KEEPCNT)" << strerror(errno);
+         return;
+     }
 +#endif
-+#ifndef TCP_KEEPIDLE
-+# define TCP_KEEPIDLE TCP_KEEPALIVE
-+#endif
-+
- //for detecting intel AMT KVM vnc server
- static const QString INTEL_AMT_KVM_STRING= "Intel(r) AMT KVM";
- static QThreadStorage<VncClientThread **> instances;
+     m_keepalive.set = true;
+     kDebug(5011) << "TCP keepalive set";
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140209/87463e2b/attachment.html>


More information about the macports-changes mailing list