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:31:27 +0200 |
commit | f2828a14fbe2ce56b5090f45b2a9a6e749d33b22 (patch) | |
tree | aab1fdc2e27d5afb4fd5b7f2622c78c2f4005219 /crypto | |
parent | d46f9173bbd62ffa7ae0b20bf05c600e14722cc6 (diff) |
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)
(cherry picked from commit 9d71a24ebf57e7157888af1ca587eafe914bf96f)
Diffstat (limited to 'crypto')
-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 76937a9e4d..939b4ab183 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> |