From: Warner Losh Date: Mon, 18 Mar 2024 18:23:08 +0000 (-0600) Subject: posix_async: FreeBSD also defines {make|swap|get|set}context X-Git-Tag: openssl-3.4.0-alpha1~753 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aad59c224e6b490dbd9a7b93bd3dee2ad42bae3;p=thirdparty%2Fopenssl.git posix_async: FreeBSD also defines {make|swap|get|set}context FreeBSD also defines {make|swap|get|set}context for backward compatibility, despite also exposing POSIX_VERSION 200809L in FreeBSD 15-current. Note: There's no fallback for POSIX_VERSION 200809 without these routines, so maybe that should be a #error? CLA: Trivial Sponsored by: Netflix Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23885) --- diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h index 603965310d1..4b15c23ece7 100644 --- a/crypto/async/arch/async_posix.h +++ b/crypto/async/arch/async_posix.h @@ -18,7 +18,7 @@ # include # if _POSIX_VERSION >= 200112L \ - && (_POSIX_VERSION < 200809L || defined(__GLIBC__)) + && (_POSIX_VERSION < 200809L || defined(__GLIBC__) || defined(__FreeBSD__)) # include