mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Merge branch 'fix-dlopen-libsensors-debian' of fasterit/htop
This commit is contained in:
commit
f8a610e6e1
@ -21,9 +21,13 @@ static void* dlopenHandle = NULL;
|
||||
|
||||
int LibSensors_init(FILE* input) {
|
||||
if (!dlopenHandle) {
|
||||
dlopenHandle = dlopen("libsensors.so", RTLD_LAZY);
|
||||
if (!dlopenHandle)
|
||||
goto dlfailure;
|
||||
dlopenHandle = dlopen("libsensors.so.", RTLD_LAZY);
|
||||
if (!dlopenHandle) {
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* Clear any errors */
|
||||
dlerror();
|
||||
|
Loading…
Reference in New Issue
Block a user