--- synergy-core-1.8.8-stable/CMakeLists.txt.orig 2022-02-25 12:16:13.296532000 +0100 +++ synergy-core-1.8.8-stable/CMakeLists.txt 2022-02-25 12:49:17.446937200 +0100 @@ -74,9 +74,12 @@ # Depending on the platform, pass in the required defines. if (UNIX) - if (NOT APPLE) + if (NOT (APPLE OR CYGWIN)) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") endif() + if (CYGWIN) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++14") + endif() # For config.h, detect the libraries, functions, etc. include(CheckIncludeFiles) --- synergy-core-1.8.8-stable/ext/toolchain/commands1.py.orig 2017-03-03 15:05:27.000000000 +0100 +++ synergy-core-1.8.8-stable/ext/toolchain/commands1.py 2022-02-25 12:21:08.442896900 +0100 @@ -709,7 +709,7 @@ if err != 0: raise Exception(gui_make_cmd + ' failed with error: ' + str(err)) - elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin']: + elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'darwin', 'cygwin']: gui_make_cmd = self.make_cmd + " -w" + args print 'Make GUI command: ' + gui_make_cmd @@ -964,6 +964,7 @@ return self.getGitRevision() def getGitRevision(self): + return "1.8.8" if sys.version_info < (2, 4): raise Exception("Python 2.4 or greater required.") @@ -979,6 +980,7 @@ return stdout.strip() def getGitBranchName(self): + return ""; if sys.version_info < (2, 4): raise Exception("Python 2.4 or greater required.") @@ -1669,7 +1671,7 @@ def get_generators(self): if sys.platform == 'win32': return self.win32_generators - elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5']: + elif sys.platform in ['linux2', 'sunos5', 'freebsd7', 'aix5', 'cygwin']: return self.unix_generators elif sys.platform == 'darwin': return self.darwin_generators --- synergy-core-1.8.8-stable/hm.sh.orig 2022-02-25 12:15:18.195319800 +0100 +++ synergy-core-1.8.8-stable/hm.sh 2022-02-25 12:15:21.118453800 +0100 @@ -1,3 +1,3 @@ #! /bin/bash -python hm.py "$@" +python2 hm.py "$@" --- synergy-core-1.8.8-stable/src/CMakeLists.txt.orig 2022-02-25 12:10:26.527058500 +0100 +++ synergy-core-1.8.8-stable/src/CMakeLists.txt 2022-02-25 12:10:30.195871100 +0100 @@ -50,6 +50,6 @@ add_subdirectory(cmd) add_subdirectory(micro) -if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "IRIX") +if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "CYGWIN") add_subdirectory(test) endif() --- synergy-core-1.8.8-stable/src/lib/net/SecureSocket.cpp.orig 2022-02-25 12:54:48.522793000 +0100 +++ synergy-core-1.8.8-stable/src/lib/net/SecureSocket.cpp 2022-02-25 13:03:10.854959500 +0100 @@ -805,9 +805,14 @@ showCipherStackDesc(sStack); } - // m_ssl->m_ssl->session->ciphers is not forward compatable, In future release - // of OpenSSL, it's not visible, need to use SSL_get_client_ciphers() instead +#if OPENSSL_VERSION_NUMBER < 0x10100000L + // m_ssl->m_ssl->session->ciphers is not forward compatable, + // In future release of OpenSSL, it's not visible, STACK_OF(SSL_CIPHER) * cStack = m_ssl->m_ssl->session->ciphers; +#else + // Use SSL_get_client_ciphers() for newer versions + STACK_OF(SSL_CIPHER) * cStack = SSL_get_client_ciphers(m_ssl->m_ssl); +#endif if (cStack == NULL) { LOG((CLOG_DEBUG1 "remote cipher list not available")); }