Changeset 116881


Ignore:
Timestamp:
Feb 9, 2014, 1:35:20 PM (6 years ago)
Author:
nicos@…
Message:

krdc: fixing build on systems other than Mavericks

Location:
trunk/dports/kde/krdc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/kde/krdc/Portfile

    r116870 r116881  
    77name                krdc
    88version             4.12.2
     9revision            1
    910categories          kde kde4
    1011license             GPL-2+ LGPL-2+
  • trunk/dports/kde/krdc/files/patch-vncclientthread.diff

    r116870 r116881  
    1 --- vnc/vncclientthread.cpp.orig        2013-11-28 05:36:28.000000000 +0900
    2 +++ vnc/vncclientthread.cpp     2013-12-24 20:00:11.000000000 +0900
    3 @@ -29,6 +29,13 @@
    4  #include <QThreadStorage>
    5  #include <QTimer>
     1--- vnc/vncclientthread.cpp.orig        2014-01-28 07:52:13.000000000 +0900
     2+++ vnc/vncclientthread.cpp     2014-02-09 20:59:28.000000000 +0900
     3@@ -601,6 +601,12 @@
    64 
    7 +#ifndef SOL_TCP
    8 +# define SOL_TCP IPPROTO_TCP
     5     // Try to set the option active
     6     optval = 1;
     7+#ifdef __APPLE__
     8+    if (setsockopt(cl->sock, IPPROTO_TCP, TCP_KEEPALIVE, &optval, optlen) < 0) {
     9+        kError(5011) << "setsockopt(TCP_KEEPALIVE)" << strerror(errno);
     10+        return;
     11+    }
     12+#else
     13     if (setsockopt(cl->sock, SOL_SOCKET, SO_KEEPALIVE, &optval, optlen) < 0) {
     14         kError(5011) << "setsockopt(SO_KEEPALIVE)" << strerror(errno);
     15         return;
     16@@ -623,6 +629,7 @@
     17         kError(5011) << "setsockopt(TCP_KEEPCNT)" << strerror(errno);
     18         return;
     19     }
    920+#endif
    10 +#ifndef TCP_KEEPIDLE
    11 +# define TCP_KEEPIDLE TCP_KEEPALIVE
    12 +#endif
    13 +
    14  //for detecting intel AMT KVM vnc server
    15  static const QString INTEL_AMT_KVM_STRING= "Intel(r) AMT KVM";
    16  static QThreadStorage<VncClientThread **> instances;
     21     m_keepalive.set = true;
     22     kDebug(5011) << "TCP keepalive set";
     23 }
Note: See TracChangeset for help on using the changeset viewer.