raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ead43c40c36bb4f74426a8b1ca4418952e338ac1

commit ead43c40c36bb4f74426a8b1ca4418952e338ac1
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Aug 18 12:06:43 2020 +0100

    ddc - add libddcutil.so.3 as supported as it is compatible for our uses
---
 src/bin/system/e_system_ddc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/system/e_system_ddc.c b/src/bin/system/e_system_ddc.c
index 2d57b3bac..74d48dd56 100644
--- a/src/bin/system/e_system_ddc.c
+++ b/src/bin/system/e_system_ddc.c
@@ -302,7 +302,11 @@ err:
 static Eina_Bool
 _ddc_init(void)
 {
-   ddc_lib = dlopen("libddcutil.so.2", RTLD_NOW | RTLD_LOCAL);
+   // .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.3", RTLD_NOW | RTLD_LOCAL);
+   if (!ddc_lib)
+     ddc_lib = dlopen("libddcutil.so.2", RTLD_NOW | RTLD_LOCAL);
    if (!ddc_lib) return EINA_FALSE;
 #define SYM(_x) \
    do { \

-- 


Reply via email to