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:
Adam Honse 2023-07-09 13:06:21 -05:00
parent f679081a2c
commit 29b0816c9c

View file

@ -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
/*-------------------------------------------------*\ /*-------------------------------------------------*\