about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-03-03 17:05:58 +0800
committerGitHub <noreply@github.com>2025-03-03 10:05:58 +0100
commiteb40c491320932ea477e3808f291fba1bed251d8 (patch)
tree544898d0c9dff8e267532a7d41ddad45d35c49be /src
parent5dadc513dbd9ffa84a28ab8c17f9a1cfd44877fc (diff)
downloadbox64-eb40c491320932ea477e3808f291fba1bed251d8.tar.gz
box64-eb40c491320932ea477e3808f291fba1bed251d8.zip
[CORE] Limited some syscalls for Android build (#2412)
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 14b0a4c0..8bb1d78d 100644
--- a/src/core.c
+++ b/src/core.c
@@ -483,7 +483,9 @@ static void hookMangoHud()
     if (FileExist("/etc/MangoHud.conf", IS_FILE)) return;
     const char* configdir = getenv("XDG_CONFIG_HOME");
     const char* homedir = getenv("HOME");
+#ifndef ANDROID
     homedir = homedir ? homedir : getpwuid(getuid())->pw_dir;
+#endif
     if (!homedir) return;
 
     static char config_base[512];