Skip to content

Commit

Permalink
macOS: correct IOKit framework location (libusb#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xDP authored and Youw committed Dec 7, 2019
1 parent ca1a2d6 commit 65d22a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mac/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ static io_service_t hidapi_IOHIDDeviceGetService(IOHIDDeviceRef device)
* and the fallback method will be used.
*/
if (iokit_framework == NULL) {
iokit_framework = dlopen("/System/Library/IOKit.framework/IOKit", RTLD_LAZY);
iokit_framework = dlopen("/System/Library/Frameworks/IOKit.framework/IOKit", RTLD_LAZY);

if (iokit_framework != NULL)
dynamic_IOHIDDeviceGetService = (dynamic_IOHIDDeviceGetService_t) dlsym(iokit_framework, "IOHIDDeviceGetService");
Expand Down

0 comments on commit 65d22a9

Please sign in to comment.