| 1 | Patch-Source: https://gitlab.winehq.org/mono/mono/-/merge_requests/102
|
| 2 | ---
|
| 3 | From 3e2d91111d58376b84ac8980a3d9df9a2265348e Mon Sep 17 00:00:00 2001
|
| 4 | From: fossdd <[email protected]>
|
| 5 | Date: Fri, 25 Apr 2025 16:34:58 +0200
|
| 6 | Subject: [PATCH] mono-context: Remove use of __GLIBC_PREREQ
|
| 7 |
|
| 8 | __GLIBC_PREREQ is obviously only known in glibc and their use on other
|
| 9 | libcs fails like musl libc fails with:
|
| 10 |
|
| 11 | ../../mono/utils/mono-context.h:901:19: error: missing binary operator before token "("
|
| 12 | 901 | #if __GLIBC_PREREQ(2, 26)
|
| 13 | | ^
|
| 14 | ---
|
| 15 | mono/utils/mono-context.h | 2 +-
|
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-)
|
| 17 |
|
| 18 | diff --git a/mono/utils/mono-context.h b/mono/utils/mono-context.h
|
| 19 | index 8e423acb398..c4d64fabfb9 100644
|
| 20 | |
| 21 | |
| 22 | @@ -898,7 +898,7 @@ typedef struct {
|
| 23 |
|
| 24 | #include <sys/ucontext.h>
|
| 25 |
|
| 26 | -#if __GLIBC_PREREQ(2, 26)
|
| 27 | +#if __GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 26
|
| 28 | typedef ucontext_t MonoContext;
|
| 29 | #else
|
| 30 | typedef struct ucontext MonoContext;
|
| 31 | --
|
| 32 | GitLab
|
| 33 |
|