Fixed building on FreeBSD

Alex S

Looks like we have a collision with https://hg.libsdl.org/SDL/rev/cd774daff9f6. (Again, the headers in the base system are intended for drivers and should not be used for compiling non-base applications. At least that's the policy for now: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240964#c19.)
This commit is contained in:
Sam Lantinga
2020-11-24 06:42:53 -08:00
parent feab9d42c1
commit 7a05dbf4b9
3 changed files with 13 additions and 61 deletions

View File

@@ -22,11 +22,7 @@
#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;