Commit 539afc5d0bc8d581d7a7e9f87694046989bbe8f2

Sam Lantinga 2016-11-01T10:33:44

Fixed bug 3473 - can't build on linux with an old kernel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/core/linux/SDL_evdev.c b/src/core/linux/SDL_evdev.c
index 4761f3e..642d00c 100644
--- a/src/core/linux/SDL_evdev.c
+++ b/src/core/linux/SDL_evdev.c
@@ -57,6 +57,14 @@
 #define SYN_DROPPED 3
 #endif
 
+/* These are not defined in older Linux kernel headers */
+#ifndef ABS_MT_SLOT
+#define ABS_MT_SLOT         0x2f
+#define ABS_MT_POSITION_X   0x35
+#define ABS_MT_POSITION_Y   0x36
+#define ABS_MT_TRACKING_ID  0x39
+#endif
+
 typedef struct SDL_evdevlist_item
 {
     char *path;