Disable libusb wrapped HID devices on non-glibc Linux as it segfaults on musl at the moment (tested on postmarketOS)
This commit is contained in:
parent
f679081a2c
commit
29b0816c9c
1 changed files with 2 additions and 0 deletions
|
|
@ -1239,6 +1239,7 @@ void ResourceManager::DetectDevicesThreadFunction()
|
||||||
| Reset current device pointer to first device |
|
| Reset current device pointer to first device |
|
||||||
\*-------------------------------------------------*/
|
\*-------------------------------------------------*/
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
#ifdef __GLIBC__
|
||||||
LOG_INFO("------------------------------------------------------");
|
LOG_INFO("------------------------------------------------------");
|
||||||
LOG_INFO("| Detecting libusb HID devices |");
|
LOG_INFO("| Detecting libusb HID devices |");
|
||||||
LOG_INFO("------------------------------------------------------");
|
LOG_INFO("------------------------------------------------------");
|
||||||
|
|
@ -1352,6 +1353,7 @@ void ResourceManager::DetectDevicesThreadFunction()
|
||||||
\*-------------------------------------------------*/
|
\*-------------------------------------------------*/
|
||||||
wrapper.hid_free_enumeration(hid_devices);
|
wrapper.hid_free_enumeration(hid_devices);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*-------------------------------------------------*\
|
/*-------------------------------------------------*\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue