From abf56a0bcd3edcf0bf2521422dfeaad2f9f7fcea Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Fri, 7 Aug 2026 03:16:20 +0000 Subject: [PATCH 13/38] camera (Apple): guard AVFoundation import behind 10.7 availability check Ported from https://github.com/macos-powerpc/powerpc-ports/blob/main/sysutils/fastfetch/files/0012-Misc-fixes-for-legacy-systems.patch --- src/detection/camera/camera_apple.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/camera/camera_apple.m b/src/detection/camera/camera_apple.m index da6884486..091868040 100644 --- a/src/detection/camera/camera_apple.m +++ b/src/detection/camera/camera_apple.m @@ -1,7 +1,11 @@ #include "camera.h" #include "common/io.h" +#include + +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 #import +#endif // warning: 'AVCaptureDeviceTypeExternalUnknown' is deprecated #pragma GCC diagnostic ignored "-Wdeprecated-declarations" -- 2.43.0