LibSensors: fix unversioned libsensors library name

This commit is contained in:
Christian Göttsche 2020-12-15 13:54:32 +01:00
parent eb36385a6b
commit 4eeeb63647
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ static void* dlopenHandle = NULL;
int LibSensors_init(FILE* input) { int LibSensors_init(FILE* input) {
if (!dlopenHandle) { if (!dlopenHandle) {
dlopenHandle = dlopen("libsensors.so.", RTLD_LAZY); dlopenHandle = dlopen("libsensors.so", RTLD_LAZY);
if (!dlopenHandle) { if (!dlopenHandle) {
/* Debian contains no unversioned .so in libsensors5, only in the -dev package, so work around that: */ /* Debian contains no unversioned .so in libsensors5, only in the -dev package, so work around that: */
dlopenHandle = dlopen("libsensors.so.5", RTLD_LAZY); dlopenHandle = dlopen("libsensors.so.5", RTLD_LAZY);