about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <seebastien.chev@gmail.com>2023-09-02 15:27:08 +0200
committerptitSeb <seebastien.chev@gmail.com>2023-09-02 15:27:08 +0200
commit6a6b75b7b4772b03a0d9ee86ca34d4c3886136b2 (patch)
tree29354554a6c2e7e91db5c24487950fa410dc71b7 /src
parent491cbda0d3b7fd7d58970eac8ba28610b49bca00 (diff)
downloadbox64-6a6b75b7b4772b03a0d9ee86ca34d4c3886136b2.tar.gz
box64-6a6b75b7b4772b03a0d9ee86ca34d4c3886136b2.zip
[ANDROID] And yet again another build fix, some many missing declaration compared to linux
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/wrappedlibdl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wrapped/wrappedlibdl.c b/src/wrapped/wrappedlibdl.c
index 47c47c6b..29ce81ab 100644
--- a/src/wrapped/wrappedlibdl.c
+++ b/src/wrapped/wrappedlibdl.c
@@ -393,6 +393,15 @@ int my_dlclose(x64emu_t* emu, void *handle)
     DecRefCount(&dl->dllibs[nlib].lib, emu);
     return 0;
 }
+#ifdef ANDROID
+#ifndef RTLD_DL_SYMENT
+#define RTLD_DL_SYMENT 1
+#endif
+#ifndef RTLD_DL_LINKMAP
+#define RTLD_DL_LINKMAP 2
+#endif
+#endif
+
 int my_dladdr1(x64emu_t* emu, void *addr, void *i, void** extra_info, int flags)
 {
     //int dladdr(void *addr, Dl_info *info);