From 0146c90392b24648b0bda55bfbad1bf198bd2bf7 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 4 Aug 2024 01:24:23 +0800 Subject: [PATCH 08/12] brightness_apple.c: add a missing include --- src/detection/brightness/brightness_apple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/detection/brightness/brightness_apple.c b/src/detection/brightness/brightness_apple.c index e10d912b..a00579b3 100644 --- a/src/detection/brightness/brightness_apple.c +++ b/src/detection/brightness/brightness_apple.c @@ -14,10 +14,11 @@ extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2) __att extern IOReturn IOAVServiceReadI2C(IOAVServiceRef service, uint32_t chipAddress, uint32_t offset, void* outputBuffer, uint32_t outputBufferSize) __attribute__((weak_import)); extern IOReturn IOAVServiceWriteI2C(IOAVServiceRef service, uint32_t chipAddress, uint32_t dataAddress, void* inputBuffer, uint32_t inputBufferSize) __attribute__((weak_import)); #else -// DDC/CI (Intel) +// DDC/CI (Intel / PowerPC) #include #include #include +#include extern void CGSServiceForDisplayNumber(CGDirectDisplayID display, io_service_t* service) __attribute__((weak_import)); #endif -- 2.47.0