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