xquartz: work around a bug in 10.5 system headers

Picked from 16f52e51a2/hw/xquartz/quartz.c (L75-L79)

Signed-off-by: Sergey Fedorov <vital.had@gmail.com>
This commit is contained in:
Sergey Fedorov 2026-05-28 16:29:36 +08:00 • committed by Enrico Weigelt
commit e9fda9bdb1

View file

@ -72,6 +72,12 @@
#include <rootlessCommon.h>
#include <Xplugin.h>
/* 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