Cygwin is POSIX, don't say it isn't
authorRichard Levitte <levitte@openssl.org>
Thu, 11 Jan 2018 21:01:44 +0000 (22:01 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 18 Jan 2018 13:00:06 +0000 (14:00 +0100)
More to the point, Cygwin is a POSIX API.  In our library, the use of
a POSIX API is marked by defining the macro OPENSSL_SYS_UNIX.
Therefore, that macro shouldn't be undefined when building for Cygwin.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5060)

include/openssl/e_os2.h

index 746dd8fa66652d91eb442b7083bd65ad76acf6b0..f334863737487585117c672f925488ef9bead508 100644 (file)
@@ -49,7 +49,6 @@ extern "C" {
 #  define OPENSSL_SYS_WIN32_UWIN
 # else
 #  if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)
-#   undef OPENSSL_SYS_UNIX
 #   define OPENSSL_SYS_WIN32_CYGWIN
 #  else
 #   if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)