From 076da27043f322930481ad11d0ba5a8449c36e32 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 7 Aug 2026 03:17:49 +0000 Subject: [PATCH 32/38] sound (Apple): alias kAudioObjectPropertyScope{Input,Output} pre-10.8 Ported from https://github.com/macos-powerpc/powerpc-ports/blob/main/sysutils/fastfetch/files/0007-sound_apple.c-fix-for-10.8.patch --- src/detection/sound/sound_apple.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/detection/sound/sound_apple.c b/src/detection/sound/sound_apple.c index 36ebb2a8b..748020057 100644 --- a/src/detection/sound/sound_apple.c +++ b/src/detection/sound/sound_apple.c @@ -4,6 +4,11 @@ #include #include +#ifndef MAC_OS_X_VERSION_10_8 +#define kAudioObjectPropertyScopeInput kAudioDevicePropertyScopeInput +#define kAudioObjectPropertyScopeOutput kAudioDevicePropertyScopeOutput +#endif + #ifndef MAC_OS_VERSION_12_0 #define kAudioObjectPropertyElementMain kAudioObjectPropertyElementMaster #endif -- 2.43.0