Skip to content

Commit 29b0816

Browse files
Disable libusb wrapped HID devices on non-glibc Linux as it segfaults on musl at the moment (tested on postmarketOS)
1 parent f679081 commit 29b0816

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ResourceManager.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@ void ResourceManager::DetectDevicesThreadFunction()
12391239
| Reset current device pointer to first device |
12401240
\*-------------------------------------------------*/
12411241
#ifdef __linux__
1242+
#ifdef __GLIBC__
12421243
LOG_INFO("------------------------------------------------------");
12431244
LOG_INFO("| Detecting libusb HID devices |");
12441245
LOG_INFO("------------------------------------------------------");
@@ -1352,6 +1353,7 @@ void ResourceManager::DetectDevicesThreadFunction()
13521353
\*-------------------------------------------------*/
13531354
wrapper.hid_free_enumeration(hid_devices);
13541355
}
1356+
#endif
13551357
#endif
13561358

13571359
/*-------------------------------------------------*\

0 commit comments

Comments
 (0)