use uname -p instead of uname -m on arm netbsd aarch64

This commit is contained in:
snmsts 2024-09-17 22:43:31 +09:00
parent 4c17a2b653
commit c0a347fdf2

View file

@ -58,6 +58,11 @@ char* uname_m(void) {
s(p2);
return q("x86-64");
}
if(strcmp(p2,"evbarm")==0 ) {
/*netbsd arm*/
s(p2);
p2=system_("uname -p");
}
if(strcmp(p2,"aarch64")==0) {
s(p2);
return q("arm64");