diff options
| author | KreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com> | 2023-10-02 13:26:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-02 18:26:20 +0200 |
| commit | 57b762eb2976229a1297bd39a00976b3753de4d7 (patch) | |
| tree | bd206d2c812c9e400d933e61486aa1d27cb3927c /src/wrapped/wrappedlibxtst.c | |
| parent | a4eb0cbd74423b7bdbeb3189c12905340108ec50 (diff) | |
| download | box64-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/wrappedlibxtst.c')
| -rw-r--r-- | src/wrapped/wrappedlibxtst.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibxtst.c b/src/wrapped/wrappedlibxtst.c index 4ae3a68b..4977f938 100644 --- a/src/wrapped/wrappedlibxtst.c +++ b/src/wrapped/wrappedlibxtst.c @@ -17,7 +17,12 @@ #include "box64context.h" #include "emu/x64emu_private.h" -const char* libxtstName = "libXtst.so.6"; +#ifdef ANDROID + const char* libxtstName = "libXtst.so"; +#else + const char* libxtstName = "libXtst.so.6"; +#endif + #define LIBNAME libxtst #include "generated/wrappedlibxtsttypes.h" @@ -66,9 +71,15 @@ EXPORT int my_XRecordEnableContext(x64emu_t* emu, void* display, void* context, return my->XRecordEnableContext(display, context, find_XRecordInterceptProc_Fct(cb), closure); } -#define CUSTOM_INIT \ - getMy(lib); \ - setNeededLibs(lib, 2, "libX11.so.6", "libXext.so.6"); +#ifdef ANDROID + #define CUSTOM_INIT \ + getMy(lib); \ + setNeededLibs(lib, 2, "libX11.so", "libXext.so"); +#else + #define CUSTOM_INIT \ + getMy(lib); \ + setNeededLibs(lib, 2, "libX11.so.6", "libXext.so.6"); +#endif #define CUSTOM_FINI \ freeMy(); |