mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-05 18:28:46 +01:00
universal compilation
Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
parent
2cbf0e9b2c
commit
7ba49e9c77
@ -120,7 +120,12 @@ int main(int argc, char **argv)
|
||||
mach_port_t mainPort;
|
||||
int argcount = 0;
|
||||
|
||||
result = IOMainPort(bootstrap_port, &mainPort);
|
||||
|
||||
#if defined(MAC_OS_VERSION_12_0)
|
||||
result = IOMainPort(bootstrap_port, &mainPort);
|
||||
#else
|
||||
result = IOMasterPort(bootstrap_port, &mainPort);
|
||||
#endif
|
||||
if (result != KERN_SUCCESS) {
|
||||
errx(1, "Error getting the IOMainPort: %s",
|
||||
mach_error_string(result));
|
||||
|
Loading…
Reference in New Issue
Block a user