about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedlibdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wrapped/wrappedlibdl.c')
-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);