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 <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23885)
This commit is contained in:
Warner Losh 2024-03-18 12:23:08 -06:00 committed by Tomas Mraz
parent de8e79e064
commit 9aad59c224
1 changed files with 1 additions and 1 deletions

View 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>