From: Andy Polyakov Date: Wed, 17 Oct 2018 08:09:33 +0000 (+0200) Subject: arch/async_posix.h: improve portability. X-Git-Tag: OpenSSL_1_1_0j~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f2828a14fbe2ce56b5090f45b2a9a6e749d33b22;p=oweals%2Fopenssl.git arch/async_posix.h: improve portability. {make|swap|get|set}context are removed in POSIX.1-2008, but glibc apparently keeps providing it. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/7420) (cherry picked from commit 9d71a24ebf57e7157888af1ca587eafe914bf96f) --- diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 76937a9e4d..939b4ab183 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -17,7 +17,8 @@ # include -# if _POSIX_VERSION >= 200112L +# if _POSIX_VERSION >= 200112L \ + && (_POSIX_VERSION < 200809L || defined(__GLIBC__)) # include