diff options
| author | KreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com> | 2023-10-01 14:25:03 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-01 19:25:03 +0200 |
| commit | e558912a360809cd90796b061e3001c9ade5dba7 (patch) | |
| tree | 266322d1cc8cd94f282c3f5e5e5d791ae2d019ae /src/wrapped | |
| parent | 00ea757e770a8d5b5149ba07875905690ea91c52 (diff) | |
| download | box64-e558912a360809cd90796b061e3001c9ade5dba7.tar.gz box64-e558912a360809cd90796b061e3001c9ade5dba7.zip | |
[ANDROID] Remove PreInit Array Warning and Fix libdl name (#1001)
Diffstat (limited to 'src/wrapped')
| -rw-r--r-- | src/wrapped/wrappedlibdl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c index 9ed55135..217ae012 100644 --- a/src/wrapped/wrappedlibdl.c +++ b/src/wrapped/wrappedlibdl.c @@ -57,7 +57,11 @@ void* my_dlvsym(x64emu_t* emu, void *handle, void *symbol, const char *vername) int my_dlinfo(x64emu_t* emu, void* handle, int request, void* info) EXPORT; #define LIBNAME libdl -const char* libdlName = "libdl.so.2"; +#ifdef ANDROID + const char* libdlName = "libdl.so"; +#else + const char* libdlName = "libdl.so.2"; +#endif #define CLEARERR if(dl->last_error) {box_free(dl->last_error); dl->last_error = NULL;} |