From: Richard Levitte Date: Mon, 15 Jan 2018 18:04:17 +0000 (+0100) Subject: Simplify Cygwin checks, part 1 X-Git-Tag: OpenSSL_1_1_0h~126 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed54856765976841faa4fc41e8a09d14f0724dee;p=oweals%2Fopenssl.git Simplify Cygwin checks, part 1 Because OPENSSL_SYS_CYGWIN will keep OPENSSL_SYS_UNIX defined, there's no point having checks of this form: #if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/5060) (cherry picked from commit 6ce66ce073b19af46fd94f4eefdb7c4772d7dd6f) --- diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 3c61f7f7b0..a301a91bf1 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -11,7 +11,7 @@ #define OPENSSL_ASYNC_ARCH_ASYNC_POSIX_H #include -#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) \ +#if defined(OPENSSL_SYS_UNIX) \ && defined(OPENSSL_THREADS) && !defined(OPENSSL_NO_ASYNC) \ && !defined(__ANDROID__) && !defined(__OpenBSD__) diff --git a/engines/e_dasync.c b/engines/e_dasync.c index 4e3e9369fc..26b0714a0d 100644 --- a/engines/e_dasync.c +++ b/engines/e_dasync.c @@ -25,7 +25,7 @@ #include #include -#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) && defined(OPENSSL_THREADS) +#if defined(OPENSSL_SYS_UNIX) && defined(OPENSSL_THREADS) # undef ASYNC_POSIX # define ASYNC_POSIX # include