Fixed bug 3473 - can't build on linux with an old kernel
authorSam Lantinga <slouken@libsdl.org>
Tue, 01 Nov 2016 10:33:44 -0700
changeset 105660fb14a4fca0b
parent 10565 15ba7a201f0a
child 10567 fc1c463cfdae
Fixed bug 3473 - can't build on linux with an old kernel
src/core/linux/SDL_evdev.c
     1.1 --- a/src/core/linux/SDL_evdev.c	Tue Nov 01 10:30:46 2016 -0700
     1.2 +++ b/src/core/linux/SDL_evdev.c	Tue Nov 01 10:33:44 2016 -0700
     1.3 @@ -57,6 +57,14 @@
     1.4  #define SYN_DROPPED 3
     1.5  #endif
     1.6  
     1.7 +/* These are not defined in older Linux kernel headers */
     1.8 +#ifndef ABS_MT_SLOT
     1.9 +#define ABS_MT_SLOT         0x2f
    1.10 +#define ABS_MT_POSITION_X   0x35
    1.11 +#define ABS_MT_POSITION_Y   0x36
    1.12 +#define ABS_MT_TRACKING_ID  0x39
    1.13 +#endif
    1.14 +
    1.15  typedef struct SDL_evdevlist_item
    1.16  {
    1.17      char *path;