kfix / ddcctl

DDC monitor controls (brightness) for Mac OSX command line
GNU General Public License v3.0
1.85k stars 151 forks source link

Xcode 13, Error Compile MacOS 12 #119

Closed Flightliner380 closed 2 years ago

Flightliner380 commented 2 years ago

I tried to compile ddccdl on MacOS 12 I receive several Errors:

Example: cc -Wall -O3 -c -o build/release/DDC.o src/DDC.c src/DDC.c:35:54: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations] kern_return_t err = IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching(IOFRAMEBUFFER_CONFORMSTO), &iter);

How can I make the ddccdl compatible for MacOS 12

Thanks Flightliner

Flightliner380 commented 2 years ago

I found and Works https://github.com/waydabber/m1ddc