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/wrappedlibxt.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/wrappedlibxt.c')
| -rw-r--r-- | src/wrapped/wrappedlibxt.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/wrapped/wrappedlibxt.c b/src/wrapped/wrappedlibxt.c index 6a7180fd..f221f2a0 100644 --- a/src/wrapped/wrappedlibxt.c +++ b/src/wrapped/wrappedlibxt.c @@ -17,7 +17,12 @@ #include "box64context.h" #include "emu/x64emu_private.h" -const char* libxtName = "libXt.so.6"; +#ifdef ANDROID + const char* libxtName = "libXt.so"; +#else + const char* libxtName = "libXt.so.6"; +#endif + #define LIBNAME libxt #include "generated/wrappedlibxttypes.h" @@ -122,9 +127,15 @@ EXPORT long my_XtAppAddInput(x64emu_t* emu, void* context, int source, void* con return my->XtAppAddInput(context, source, cond, findInputCallbackFct(proc), data); } -#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(); |