arch/async_posix.h: improve portability.
[openssl.git] / crypto / async / arch / async_posix.h
index b07c2cb01beb825e452cbb2964f6599ffe7792d8..62449fe60e04ff54c0a2500d7292c98953da5735 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>