about summary refs log tree commit diff stats
path: root/src/wrapped
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped')
-rw-r--r--src/wrapped/wrappedlibc.c8
-rw-r--r--src/wrapped/wrappedlibpthread.c7
2 files changed, 10 insertions, 5 deletions
diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c
index 64e30c41..77d9ff45 100644
--- a/src/wrapped/wrappedlibc.c
+++ b/src/wrapped/wrappedlibc.c
@@ -3493,13 +3493,13 @@ EXPORT char my___libc_single_threaded = 0;
 
 #ifdef ANDROID
 #define NEEDED_LIBS_DEF   4,\
-    "libpthread.so.0",      \
-    "libdl.so.2" ,          \
+    "libpthread.so",        \
+    "libdl.so" ,            \
     "libm.so",              \
     "libbsd.so"
 #define NEEDED_LIBS_234 4,  \
-    "libpthread.so.0",      \
-    "libdl.so.2" ,          \
+    "libpthread.so",        \
+    "libdl.so" ,            \
     "libm.so",              \
     "libbsd.so"
 #else
diff --git a/src/wrapped/wrappedlibpthread.c b/src/wrapped/wrappedlibpthread.c
index 9b0184c6..c10492f4 100644
--- a/src/wrapped/wrappedlibpthread.c
+++ b/src/wrapped/wrappedlibpthread.c
@@ -18,7 +18,12 @@
 #include "box64context.h"
 #include "librarian.h"
 
-const char* libpthreadName = "libpthread.so.0";
+const char* libpthreadName = 
+#ifdef ANDROID
+    "libpthread.so";
+#else
+    "libpthread.so.0";
+#endif
 #define LIBNAME libpthread
 
 //EXPORT int my_pthread_attr_setschedparam(x64emu_t* emu, void* attr, void* param)