diff options
author | Vadim Troshchinskiy <vtroshchinskiy@qindel.com> | 2021-03-10 00:25:20 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-06-08 08:10:45 +0200 |
commit | 46258974d0527e299c82d36e31f9f160ee3e586f (patch) | |
tree | 8f0e53d5d213f2c584e9dcce4c3ec0e1fa236141 /nxcomp/src/Loop.cpp | |
parent | 9815f32d5c7c397c5a27a53764565beda2d007c2 (diff) | |
download | nx-libs-46258974d0527e299c82d36e31f9f160ee3e586f.tar.gz nx-libs-46258974d0527e299c82d36e31f9f160ee3e586f.tar.bz2 nx-libs-46258974d0527e299c82d36e31f9f160ee3e586f.zip |
nxcomp: Support Cygwin64.
64 bit Cygwin defines __CYGWIN__ instead of __CYGWIN32__
Diffstat (limited to 'nxcomp/src/Loop.cpp')
-rw-r--r-- | nxcomp/src/Loop.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp index 7fecb9123..4bbf42b91 100644 --- a/nxcomp/src/Loop.cpp +++ b/nxcomp/src/Loop.cpp @@ -79,7 +79,7 @@ typedef int socklen_t; #include <sys/select.h> #endif -#ifndef __CYGWIN32__ +#if !(defined(__CYGWIN__) || defined(__CYGWIN32__)) #include <netinet/tcp.h> #endif @@ -4702,7 +4702,7 @@ void CleanupStreams() // at the time the proxy is being shut down. // - #ifndef __CYGWIN32__ + #if !(defined(__CYGWIN__) || defined(__CYGWIN32__)) nxinfo << "Loop: Freeing up streams in process " << "with pid '" << getpid() << "'.\n" @@ -4753,7 +4753,7 @@ void CleanupStreams() errofs = NULL; } - #endif /* #ifndef __CYGWIN32__ */ + #endif /* #if !(defined(__CYGWIN__) || defined(__CYGWIN32__)) */ // // Reset these as they can't be reset @@ -5705,7 +5705,7 @@ void HandleSignal(int signal) break; } - #ifdef __CYGWIN32__ + #if defined(__CYGWIN__) || defined(__CYGWIN32__) case 12: { @@ -6753,7 +6753,7 @@ int ConnectToRemote(ChannelEndPoint &socketAddress) // on Windows. // - #ifdef __CYGWIN32__ + #if defined(__CYGWIN__) || defined(__CYGWIN32__) KillProcess(lastDialog, "dialog", SIGKILL, 1); @@ -9849,7 +9849,7 @@ char *GetClientPath() clientEnv = "/Applications/NX Client for OSX.app/Contents/MacOS/nxclient"; #else - # if defined(__CYGWIN32__) + # if defined(__CYGWIN__) || defined(__CYGWIN32__) clientEnv = "C:\\Program Files\\NX Client for Windows\\nxclient"; @@ -13633,7 +13633,7 @@ int CheckSignal(int signal) } default: { - #ifdef __CYGWIN32__ + #if defined(__CYGWIN__) || defined(__CYGWIN32__) // // This signal can be raised by the Cygwin @@ -14968,7 +14968,7 @@ static void handleAlertInLoop() // on Windows. // - #ifdef __CYGWIN32__ + #if defined(__CYGWIN__) || defined(__CYGWIN32__) KillProcess(lastDialog, "dialog", SIGKILL, 0); |