summaryrefslogtreecommitdiffstats
path: root/crypto/async
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2018-10-17 10:09:33 +0200
committerAndy Polyakov <appro@openssl.org>2018-10-19 10:31:04 +0200
commitfc762e7d5c21b534af967f4308b2b9597fe76d7f (patch)
treecd81d306613554314bace9dcb3d94deff11a17fc /crypto/async
parentaa519853be79ae92e6aa8ec34de5d1803d721b00 (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/async')
-rw-r--r--crypto/async/arch/async_posix.h3
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>