projects/aports·blob master · refs

33 lines · 1.0 KiB

1Patch-Source: https://gitlab.winehq.org/mono/mono/-/merge_requests/102
2---
3From 3e2d91111d58376b84ac8980a3d9df9a2265348e Mon Sep 17 00:00:00 2001
4From: fossdd <[email protected]>
5Date: Fri, 25 Apr 2025 16:34:58 +0200
6Subject: [PATCH] mono-context: Remove use of __GLIBC_PREREQ
7
8__GLIBC_PREREQ is obviously only known in glibc and their use on other
9libcs 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
18diff --git a/mono/utils/mono-context.h b/mono/utils/mono-context.h
19index 8e423acb398..c4d64fabfb9 100644
20--- a/mono/utils/mono-context.h
21+++ b/mono/utils/mono-context.h
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--
32GitLab
33