OpenBSD doesn't have ucontext.h so don't try and include it
authorMatt Caswell <matt@openssl.org>
Wed, 11 May 2016 10:18:57 +0000 (11:18 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 1 Jun 2016 09:19:25 +0000 (10:19 +0100)
On OpenBSD we turn off async capabilities due to no ucontext.h.

RT#4379

Reviewed-by: Richard Levitte <levitte@openssl.org>
crypto/async/arch/async_posix.h

index e0099c31c4238a8563dc584021091d09bf65821c..0d9245ebe9241a6e44413c542263d2dda67c14eb 100644 (file)
@@ -11,7 +11,9 @@
 #define OPENSSL_ASYNC_ARCH_ASYNC_POSIX_H
 #include <openssl/e_os2.h>
 
-#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) && defined(OPENSSL_THREADS) && !defined(OPENSSL_NO_ASYNC) && !defined(__ANDROID__)
+#if (defined(OPENSSL_SYS_UNIX) || defined(OPENSSL_SYS_CYGWIN)) \
+    && defined(OPENSSL_THREADS) && !defined(OPENSSL_NO_ASYNC) \
+    && !defined(__ANDROID__) && !defined(__OpenBSD__)
 
 # include <unistd.h>