mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 23:02:07 +00:00
Print unknown if release information is unavailable on macOS
At least 10.4 Tiger doesn't support required sysctl name
This commit is contained in:
parent
60ac12be0a
commit
c28bcca3f3
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ static void I_DetectOS()
|
||||||
case 12: name = "macOS Sierra"; break;
|
case 12: name = "macOS Sierra"; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
char release[16] = {};
|
char release[16] = "unknown";
|
||||||
size_t size = sizeof release - 1;
|
size_t size = sizeof release - 1;
|
||||||
sysctlbyname("kern.osversion", release, &size, nullptr, 0);
|
sysctlbyname("kern.osversion", release, &size, nullptr, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue