waydabber / m1ddc

This little tool controls external displays (connected via USB-C/DisplayPort Alt Mode) using DDC/CI on Apple Silicon Macs. Useful to embed in various scripts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: use of undeclared identifier 'kIOMainPortDefault'

dashbad opened this issue · comments

I get the following error when running "make" on a brand new Apple Studio M1 ultra on 12.4:

clang -fmodules -o m1ddc m1ddc.m
m1ddc.m:84:63: error: use of undeclared identifier 'kIOMainPortDefault'
io_registry_entry_t root = IORegistryGetRootEntry(kIOMainPortDefault);
^
1 error generated.
make: *** [all] Error 1

Realised this was because I needed to update xcode