diff options
Diffstat (limited to 'src/dlmisc.c')
-rw-r--r-- | src/dlmisc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dlmisc.c b/src/dlmisc.c index c882cdc..b84eaf6 100644 --- a/src/dlmisc.c +++ b/src/dlmisc.c @@ -54,9 +54,13 @@ void *snd_dlopen(const char *name, int mode) #else #ifdef HAVE_LIBDL if (name == NULL) { +#ifdef ANDROID + return RTLD_DEFAULT; +#else Dl_info dlinfo; if (dladdr(snd_dlopen, &dlinfo) > 0) name = dlinfo.dli_fname; +#endif } #endif #endif @@ -82,6 +86,10 @@ int snd_dlclose(void *handle) return 0; #endif #ifdef HAVE_LIBDL +#ifdef ANDROID + if (handle == RTLD_DEFAULT) + return 0; +#endif return dlclose(handle); #else return 0; |