joystick: Fix up Linux joystick code to (mostly) compile on FreeBSD.

This commit is contained in:
Ryan C. Gordon
2020-11-23 22:14:22 -05:00
parent 179bd66581
commit 5c9577476f
3 changed files with 62 additions and 26 deletions

View File

@@ -22,7 +22,11 @@
#ifndef SDL_sysjoystick_c_h_
#define SDL_sysjoystick_c_h_
#ifdef __linux__
#include <linux/input.h>
#else /* FreeBSD (and maybe others) */
#include <dev/evdev/input.h>
#endif
struct SDL_joylist_item;