diff options
author | Andy Polyakov <appro@openssl.org> | 2018-10-17 10:09:33 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-10-19 10:29:21 +0200 |
commit | 9d71a24ebf57e7157888af1ca587eafe914bf96f (patch) | |
tree | 3f1c60480742c0268262b293f39bf2af0be1ba35 /crypto/async/arch | |
parent | Fix tls_cbc_digest_record is slow using SHA-384 and short messages (diff) | |
download | openssl-9d71a24ebf57e7157888af1ca587eafe914bf96f.tar.xz openssl-9d71a24ebf57e7157888af1ca587eafe914bf96f.zip |
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 <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7420)
Diffstat (limited to 'crypto/async/arch')
-rw-r--r-- | crypto/async/arch/async_posix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index b07c2cb01b..62449fe60e 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -17,7 +17,8 @@ # include <unistd.h> -# if _POSIX_VERSION >= 200112L +# if _POSIX_VERSION >= 200112L \ + && (_POSIX_VERSION < 200809L || defined(__GLIBC__)) # include <pthread.h> |