ddc - support latest major version

This commit is contained in:
Carsten Haitzler 2021-07-04 10:05:50 +01:00
parent 8927930002
commit a197e3c1db
1 changed files with 3 additions and 1 deletions

View File

@ -306,6 +306,8 @@ _ddc_init(void)
{
// .so.3 is ABI compatible twith .so.2 for out uses - see
// https://www.ddcutil.com/c_api_99/ for changes between them
ddc_lib = dlopen("libddcutil.so.4", RTLD_NOW | RTLD_LOCAL);
if (!ddc_lib)
ddc_lib = dlopen("libddcutil.so.3", RTLD_NOW | RTLD_LOCAL);
if (!ddc_lib)
ddc_lib = dlopen("libddcutil.so.2", RTLD_NOW | RTLD_LOCAL);