]> granicus.if.org Git - openssl/commitdiff
arch/async_posix.h: improve portability.
authorAndy Polyakov <appro@openssl.org>
Wed, 17 Oct 2018 08:09:33 +0000 (10:09 +0200)
committerAndy Polyakov <appro@openssl.org>
Fri, 19 Oct 2018 08:31:27 +0000 (10:31 +0200)
{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)

crypto/async/arch/async_posix.h

index 76937a9e4dc056416dbdfdff4f15ccc054ff97c0..939b4ab183cd261fb30be503cdf7adf8aeaa292e 100644 (file)
@@ -17,7 +17,8 @@
 
 # include <unistd.h>
 
-# if _POSIX_VERSION >= 200112L
+# if _POSIX_VERSION >= 200112L \
+     && (_POSIX_VERSION < 200809L || defined(__GLIBC__))
 
 # include <pthread.h>