about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibxrender.c
diff options
context:
space:
mode:
authorKreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com>2023-10-02 13:26:20 -0300
committerGitHub <noreply@github.com>2023-10-02 18:26:20 +0200
commit57b762eb2976229a1297bd39a00976b3753de4d7 (patch)
treebd206d2c812c9e400d933e61486aa1d27cb3927c /src/wrapped/wrappedlibxrender.c
parenta4eb0cbd74423b7bdbeb3189c12905340108ec50 (diff)
downloadbox64-57b762eb2976229a1297bd39a00976b3753de4d7.tar.gz
box64-57b762eb2976229a1297bd39a00976b3753de4d7.zip
Add __sF, __assert2 Symbol and set PThread Symbols on libc (#1004)
* Add __sF, __assert2 Symbol and set PThread Symbols on libc

* [ANDROID] Fix Most Library Names
Diffstat (limited to 'src/wrapped/wrappedlibxrender.c')
-rw-r--r--src/wrapped/wrappedlibxrender.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/wrapped/wrappedlibxrender.c b/src/wrapped/wrappedlibxrender.c
index ff2c218f..73fd2662 100644
--- a/src/wrapped/wrappedlibxrender.c
+++ b/src/wrapped/wrappedlibxrender.c
@@ -11,15 +11,29 @@
 #include "librarian/library_private.h"
 #include "x64emu.h"
 
-const char* libxrenderName = "libXrender.so.1";
+#ifdef ANDROID
+    const char* libxrenderName = "libXrender.so";
+#else
+    const char* libxrenderName = "libXrender.so.1";
+#endif
+
 #define LIBNAME libxrender
 
-#define CUSTOM_INIT \
-    setNeededLibs(lib, 4,           \
-        "libX11.so.6",              \
-        "libxcb.so.1",              \
-        "libXau.so.6",              \
-        "libXdmcp.so.6");
+#ifdef ANDROID
+    #define CUSTOM_INIT \
+        setNeededLibs(lib, 4,           \
+            "libX11.so",              \
+            "libxcb.so",              \
+            "libXau.so",              \
+            "libXdmcp.so");
+#else
+    #define CUSTOM_INIT \
+        setNeededLibs(lib, 4,           \
+            "libX11.so.6",              \
+            "libxcb.so.1",              \
+            "libXau.so.6",              \
+            "libXdmcp.so.6");
+#endif
 
 #include "wrappedlib_init.h"