diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2020-01-15 19:08:17 +0000 |
---|---|---|
committer | Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com> | 2020-10-16 09:35:48 -0700 |
commit | fbf905c3342c2667b2474864951f4590a0eb91c7 (patch) | |
tree | 97134b93c6f794cd0cb05324f7359c136cc4b731 | |
parent | 37886813e71629363342a0503a83e39c8e840eb0 (diff) | |
download | libva-fbf905c3342c2667b2474864951f4590a0eb91c7.tar.gz |
va/va: don't try to use RTLD_NODELETE on non-Android if not available
../va/va.c:455:64: error: use of undeclared identifier 'RTLD_NODELETE'
handle = dlopen( driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE );
^
-rw-r--r-- | va/va.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |