mirror of
https://github.com/roswell/roswell.git
synced 2026-09-10 07:16:17 -04:00
prepare for android support (no sbcl-bin prepared for roswell yet though)
This commit is contained in:
parent
16e2aa2300
commit
638608236c
11
src/util.c
11
src/util.c
|
|
@ -9,6 +9,17 @@ char* uname_s(void) {
|
|||
s(p2);
|
||||
return q("solaris");
|
||||
}
|
||||
if(strcmp(p2,"Linux")==0 &&
|
||||
strcmp(UNAME_M,"aarch64") ==0) {
|
||||
char* result=system_("uname -o");
|
||||
char* result2=remove_char("\r\n",result);
|
||||
s(result);
|
||||
if(strcmp(result2,"Android")==0) {
|
||||
s(result2),s(p2);
|
||||
/* termux? */
|
||||
return q("android");
|
||||
}
|
||||
}
|
||||
return downcase(p2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue