[v0.98][ARM] Compiles and does not segfault in ARM running macOS

This commit is contained in:
Dr-Noob
2021-08-02 12:02:41 +01:00
parent a3c6f15658
commit 4998cf3c82
2 changed files with 67 additions and 48 deletions

View File

@@ -587,6 +587,7 @@ struct system_on_chip* get_soc() {
soc->soc_vendor = SOC_VENDOR_UNKNOWN;
soc->process = UNKNOWN;
#ifdef __linux__
bool isRPi = is_raspberry_pi();
if(isRPi) {
soc = guess_soc_raspbery_pi(soc);
@@ -612,6 +613,9 @@ struct system_on_chip* get_soc() {
printWarn("SoC detection failed using Android: Found '%s' string", soc->raw_name);
#endif
}
#elif defined __APPLE__ || __MACH__
soc->raw_name = NULL;
#endif
if(soc->raw_name == NULL) {
soc->raw_name = malloc(sizeof(char) * (strlen(STRING_UNKNOWN)+1));