From a34233b91e98ce07729d2a936cfd5fb5826c8fd1 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Thu, 28 May 2026 16:29:36 +0800 Subject: [PATCH 1/8] 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 --- hw/xquartz/quartz.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/xquartz/quartz.c b/hw/xquartz/quartz.c index 2feab69f4..bba05ea5d 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 -- 2.54.0