Added
Link Here
|
0 |
- |
1 |
commit e883812f463c1623249e038698ccaddf2baa34d8 |
|
|
2 |
Author: Warner Losh <imp@FreeBSD.org> |
3 |
Date: Mon Mar 18 19:48:22 2024 -0600 |
4 |
|
5 |
posix_async: FreeBSD also defines {make|swap|get|set}context |
6 |
|
7 |
FreeBSD also defines {make|swap|get|set}context for backward |
8 |
compatibility, despite also exposing POSIX_VERSION 200809L |
9 |
in FreeBSD 15-current. |
10 |
|
11 |
Note: There's no fallback for POSIX_VERSION 200809 without these |
12 |
routines, so maybe that should be a #error? ... But that's a questionf |
13 |
or upstream. |
14 |
|
15 |
FreeBSD has defined these interfaces since FreeBSD 4.7, released over 20 |
16 |
years ago, so no further nuance in FreeBSD version number is necessary. |
17 |
|
18 |
Pull Request: https://github.com/openssl/openssl/pull/23885 |
19 |
|
20 |
diff --git a/crypto/async/arch/async_posix.h b/crypto/async/arch/async_posix.h |
21 |
index a17c6b8e68af..2d97ec3acc9b 100644 |
22 |
--- crypto/async/arch/async_posix.h |
23 |
+++ crypto/async/arch/async_posix.h |
24 |
@@ -18,7 +18,7 @@ |
25 |
# include <unistd.h> |
26 |
|
27 |
# if _POSIX_VERSION >= 200112L \ |
28 |
- && (_POSIX_VERSION < 200809L || defined(__GLIBC__)) |
29 |
+ && (_POSIX_VERSION < 200809L || defined(__GLIBC__) || defined(__FreeBSD__)) |
30 |
|
31 |
# include <pthread.h> |
32 |
|