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 3782

Summary: error: 'ABS_MT_SLOT' undeclared (first use in this function)
Product: SDL Reporter: mittorn
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.5   
Hardware: x86_64   
OS: Linux   

Description mittorn 2017-08-28 15:37:06 UTC
CC     build/SDL_dummy_main.o
/root/xash3d/SDL2-2.0.5/src/core/linux/SDL_evdev.c: In function 'SDL_EVDEV_Poll':
/root/xash3d/SDL2-2.0.5/src/core/linux/SDL_evdev.c:454: error: 'ABS_MT_SLOT' undeclared (first use in this function)
/root/xash3d/SDL2-2.0.5/src/core/linux/SDL_evdev.c:454: error: (Each undeclared identifier is reported only once
/root/xash3d/SDL2-2.0.5/src/core/linux/SDL_evdev.c:454: error: for each function it appears in.)
make: *** [build/SDL_evdev.lo] Error 1


When trying to build it with old linux headers.
I think, you need to add check for new events definations and disable linuxev, or add new option.
Now it seems to be impossible to disable linuxev without editing configuration at all.
Comment 1 Sam Lantinga 2017-08-28 16:48:28 UTC
It looks like this is fixed in the latest SDL snapshot:
http://www.libsdl.org/tmp/SDL-2.0.zip