about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-09-10 16:17:11 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-09-10 16:17:11 +0200
commitf216fda9c1a7404305bef3651c8a97d9e224057d (patch)
treeeedc3dd876c2a0ad7b66e4cc5dd8199b1b61ecda
parent93fc3be3dfd87245e4d30acd68e143e284f9bfd2 (diff)
downloadbox64-f216fda9c1a7404305bef3651c8a97d9e224057d.tar.gz
box64-f216fda9c1a7404305bef3651c8a97d9e224057d.zip
[ANDROID] Fixing build
-rw-r--r--src/os/os_linux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/os_linux.c b/src/os/os_linux.c
index 5c1ccac4..235d43ee 100644
--- a/src/os/os_linux.c
+++ b/src/os/os_linux.c
@@ -135,6 +135,7 @@ const char* GetNativeName(void* p)
 void PersonalityAddrLimit32Bit(void)
 {
     personality(ADDR_LIMIT_32BIT);
+    #ifndef ANDROID
     /*struct rlimit l;
     if(getrlimit(RLIMIT_DATA, &l)<0) return;  // failed
     if(l.rlim_max>3*1024*1024*1024LL) {
@@ -145,6 +146,7 @@ void PersonalityAddrLimit32Bit(void)
     mallopt(M_ARENA_TEST, 2);
     mallopt(M_ARENA_MAX, 2);
     mallopt(M_MMAP_THRESHOLD, 128*1024);
+    #endif
 }
 
 int IsAddrElfOrFileMapped(uintptr_t addr)