about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-12-01 10:45:59 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-12-01 10:45:59 +0100
commit1bd928a766d2ce170437a72d8c5099fddcebbc34 (patch)
treefca4229d6ed4d9cd0f5ab14bfa139bbad047b2ea /src/wrapped
parente493b0775d942a8b052240a334765ac78948d7bd (diff)
downloadbox64-1bd928a766d2ce170437a72d8c5099fddcebbc34.tar.gz
box64-1bd928a766d2ce170437a72d8c5099fddcebbc34.zip
[ANDROID] Try to fix libbsd issues
Diffstat (limited to 'src/wrapped')
-rw-r--r--src/wrapped/wrappedlibbsd.c4
-rw-r--r--src/wrapped/wrappedlibc.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibbsd.c b/src/wrapped/wrappedlibbsd.c
index 6147a006..8937ed9d 100644
--- a/src/wrapped/wrappedlibbsd.c
+++ b/src/wrapped/wrappedlibbsd.c
@@ -17,7 +17,11 @@
 #include "x64tls.h"
 
 
+#ifdef ANDROID
+const char* libbsdName = "libbsd.so";
+#else
 const char* libbsdName = "libbsd.so.0";
+#endif
 #define LIBNAME libbsd
 
 #define PRE_INIT\
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 60aac36a..6a76eab1 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -3360,7 +3360,8 @@ EXPORT char my___libc_single_threaded = 0;
     else
 
 #ifdef ANDROID
-#define NEEDED_LIBS   0
+#define NEEDED_LIBS   1,    \
+    "libbsd.so"
 #define NEEDED_LIBS_234 4,  \
     "libpthread.so.0",      \
     "libdl.so.2" ,          \