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.

Repository from Github https://github.comwaydabber/m1ddcRepository from Github https://github.comwaydabber/m1ddc

error: use of undeclared identifier 'kIOMainPortDefault'

ZhxChen opened this issue · comments

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