mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
LibSensors: fix unversioned libsensors library name
This commit is contained in:
parent
eb36385a6b
commit
4eeeb63647
@ -23,9 +23,9 @@ static void* dlopenHandle = NULL;
|
||||
|
||||
int LibSensors_init(FILE* input) {
|
||||
if (!dlopenHandle) {
|
||||
dlopenHandle = dlopen("libsensors.so.", RTLD_LAZY);
|
||||
dlopenHandle = dlopen("libsensors.so", RTLD_LAZY);
|
||||
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);
|
||||
if (!dlopenHandle)
|
||||
goto dlfailure;
|
||||
|
Loading…
Reference in New Issue
Block a user