From 29b0816c9c05e54e8d418374e28c526dc0ccf73d Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sun, 9 Jul 2023 13:06:21 -0500 Subject: [PATCH] Disable libusb wrapped HID devices on non-glibc Linux as it segfaults on musl at the moment (tested on postmarketOS) --- ResourceManager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ResourceManager.cpp b/ResourceManager.cpp index 6cc6c568..6df9efa1 100644 --- a/ResourceManager.cpp +++ b/ResourceManager.cpp @@ -1239,6 +1239,7 @@ void ResourceManager::DetectDevicesThreadFunction() | Reset current device pointer to first device | \*-------------------------------------------------*/ #ifdef __linux__ +#ifdef __GLIBC__ LOG_INFO("------------------------------------------------------"); LOG_INFO("| Detecting libusb HID devices |"); LOG_INFO("------------------------------------------------------"); @@ -1352,6 +1353,7 @@ void ResourceManager::DetectDevicesThreadFunction() \*-------------------------------------------------*/ wrapper.hid_free_enumeration(hid_devices); } +#endif #endif /*-------------------------------------------------*\