From ed54856765976841faa4fc41e8a09d14f0724dee Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 15 Jan 2018 19:04:17 +0100 Subject: [PATCH] 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) --- crypto/async/arch/async_posix.h | 2 +- engines/e_dasync.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1