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/Socket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nxcomp/src/Socket.cpp') diff --git a/nxcomp/src/Socket.cpp b/nxcomp/src/Socket.cpp index 8be04d76d..34fdea634 100644 --- a/nxcomp/src/Socket.cpp +++ b/nxcomp/src/Socket.cpp @@ -30,7 +30,7 @@ #include #include -#if defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) +#if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) #include #endif @@ -65,7 +65,7 @@ // disabled when running on MacOS/X. // -#ifdef __CYGWIN32__ +#if defined(__CYGWIN__) || defined(__CYGWIN32__) #define TIOCOUTQ ((unsigned int) -1) #endif @@ -101,7 +101,7 @@ int GetKernelStep() // in the relevant OS dependent functions. // - #if defined(__CYGWIN32__) || defined(__APPLE__) + #if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) _kernelStep = 0; @@ -183,7 +183,7 @@ int GetKernelStep() } } - #endif /* #if defined(__CYGWIN32__) || defined(__APPLE__) */ + #endif /* #if defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(__APPLE__) */ } return _kernelStep; -- cgit v1.2.3