]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
posix_async: FreeBSD also defines {make|swap|get|set}context
authorWarner Losh <imp@bsdimp.com>
Mon, 18 Mar 2024 18:23:08 +0000 (12:23 -0600)
committerTomas Mraz <tomas@openssl.org>
Thu, 4 Apr 2024 06:45:13 +0000 (08:45 +0200)
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 <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23885)

crypto/async/arch/async_posix.h

index 603965310d1c1e4cd2eaffcd892a36eafa4a48bd..4b15c23ece70a79f744186aa347f2e7b7f2fe595 100644 (file)
@@ -18,7 +18,7 @@
 # include <unistd.h>
 
 # if _POSIX_VERSION >= 200112L \
-     && (_POSIX_VERSION < 200809L || defined(__GLIBC__))
+    && (_POSIX_VERSION < 200809L || defined(__GLIBC__) || defined(__FreeBSD__))
 
 # include <pthread.h>