summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--va/va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va.c b/va/va.c
index 890bdc0..e2aaa10 100644
--- a/va/va.c
+++ b/va/va.c
@@ -451,7 +451,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
}
va_infoMessage(dpy, "Trying to open %s\n", driver_path);
-#ifndef ANDROID
+#if defined(RTLD_NODELETE) && !defined(ANDROID)
handle = dlopen( driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE );
#else
handle = dlopen( driver_path, RTLD_NOW| RTLD_GLOBAL);