From e9fda9bdb1270cbc9dd1882a9583fd8957cc32ca Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 28 May 2026 16:29:36 +0800 Subject: [PATCH] xquartz: work around a bug in 10.5 system headers Picked from https://github.com/XQuartz/xorg-server/blob/16f52e51a203bdb90de5d94478aa9bca4e9c2e67/hw/xquartz/quartz.c#L75-L79 Signed-off-by: Sergey Fedorov --- hw/xquartz/quartz.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index 3087e415e4..cfa8f8e3e6 100644 --- a/hw/xquartz/quartz.c +++ b/hw/xquartz/quartz.c @@ -72,6 +72,12 @@ #include #include +/* Work around a bug on Leopard's headers */ +#if defined (__LP64__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050 && MAC_OS_X_VERSION_MAX_ALLOWED < 1060 +extern OSErr UpdateSystemActivity(UInt8 activity); +#define OverallAct 0 +#endif + // These are vended by the Objective-C runtime, but they are unfortunately // not available as API in the macOS SDK. We are following suit with swift // and clang in declaring them inline here. They cannot be removed or changed