From 1153aaae0dfbee9c33d3f62c2b28dca52c7222ca Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 29 Aug 2022 00:15:56 -0700 Subject: [PATCH] Fixed compiling with USB_GET_DEVICEINFO on DragonFly BSD Although the ioctl() currently fails on this platform... --- src/joystick/bsd/SDL_bsdjoystick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/bsd/SDL_bsdjoystick.c b/src/joystick/bsd/SDL_bsdjoystick.c index 94b20788b6..f5f13ee49e 100644 --- a/src/joystick/bsd/SDL_bsdjoystick.c +++ b/src/joystick/bsd/SDL_bsdjoystick.c @@ -63,10 +63,9 @@ #include #if __FreeBSD_kernel_version > 800063 #include -#endif -#include #elif defined(__DragonFly__) #include +#endif #include #endif @@ -77,6 +76,7 @@ #include "SDL_joystick.h" #include "../SDL_sysjoystick.h" #include "../SDL_joystick_c.h" +#include "../hidapi/SDL_hidapijoystick_c.h" #if defined(__FREEBSD__) || SDL_HAVE_MACHINE_JOYSTICK_H || defined(__FreeBSD_kernel__) || defined(__DragonFly_) #define SUPPORT_JOY_GAMEPORT