arch/async_posix.h: improve portability.
[oweals/openssl.git] / 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>