瀏覽代碼

Allow building against old Linux kernels.

Ozkan Sezer 2 年之前
父節點
當前提交
44d8721087
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/joystick/linux/SDL_sysjoystick.c

+ 5 - 0
src/joystick/linux/SDL_sysjoystick.c

@@ -53,6 +53,10 @@
 #include "../hidapi/SDL_hidapijoystick_c.h"
 
 /* This isn't defined in older Linux kernel headers */
+#ifndef MSC_TIMESTAMP
+#define MSC_TIMESTAMP 0x05
+#endif
+
 #ifndef SYN_DROPPED
 #define SYN_DROPPED 3
 #endif
@@ -119,6 +123,7 @@
 #define BTN_TRIGGER_HAPPY40     0x2e7
 #endif
 
+
 #include "../../core/linux/SDL_evdev_capabilities.h"
 #include "../../core/linux/SDL_udev.h"
 #include "../../core/linux/SDL_sandbox.h"