We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4873

Summary: [Patch] Fix SDL_hidapi.c compilation on Linux
Product: SDL Reporter: Ethan Lee <flibitijibibo>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: Patch to fix Linux SDL_hidapi compilation

Description Ethan Lee 2019-11-23 21:59:45 UTC
Created attachment 4067 [details]
Patch to fix Linux SDL_hidapi compilation

The latest Hg revision breaks compilation for the OS hid and libusb hid hybrid wrapper. Now that linux/hid.c does the work of dynamically loading udev, we can simply remove it from SDL_hidapi.c. Attached is the patch that does exactly this.
Comment 1 Ethan Lee 2019-12-03 14:59:36 UTC
The breaking change was backed out by https://hg.libsdl.org/SDL/rev/fcb5afd26d62