From 46258974d0527e299c82d36e31f9f160ee3e586f Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Wed, 10 Mar 2021 00:25:20 +0100 Subject: nxcomp: Support Cygwin64. 64 bit Cygwin defines __CYGWIN__ instead of __CYGWIN32__ --- nxcomp/src/ServerChannel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nxcomp/src/ServerChannel.cpp') diff --git a/nxcomp/src/ServerChannel.cpp b/nxcomp/src/ServerChannel.cpp index 0c99c9d33..4ee83507d 100644 --- a/nxcomp/src/ServerChannel.cpp +++ b/nxcomp/src/ServerChannel.cpp @@ -6972,7 +6972,7 @@ int ServerChannel::handleShmemRequest(DecodeBuffer &decodeBuffer, unsigned char // 0600 mask doesn't seem to work). // - #if defined(__CYGWIN32__) || defined(__APPLE__) + #if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) int permissions = 0777; @@ -7047,7 +7047,7 @@ int ServerChannel::handleShmemRequest(DecodeBuffer &decodeBuffer, unsigned char } else { - #ifndef __CYGWIN32__ + #if !(defined(__CYGWIN__) || defined(__CYGWIN32__)) #ifdef WARNING *logofs << "handleShmemRequest: WARNING! Can't create the shared " -- cgit v1.2.3