From dd683073bb3bb06c8014b8dbd036475f032e3484 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 6 Aug 2021 15:13:14 -0400 Subject: [PATCH] hidapi: Patched to compile on QNX. Fixes #4591. --- src/joystick/hidapi/SDL_hidapijoystick.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c index 3c7a99347..23fb07659 100644 --- a/src/joystick/hidapi/SDL_hidapijoystick.c +++ b/src/joystick/hidapi/SDL_hidapijoystick.c @@ -47,19 +47,19 @@ #include #endif -#if defined(__LINUX__) -#include "../../core/linux/SDL_udev.h" #ifdef SDL_USE_LIBUDEV +#include "../../core/linux/SDL_udev.h" #include +#include #endif + #ifdef HAVE_INOTIFY +#include /* just in case we didn't use that SDL_USE_LIBUDEV block... */ #include /* errno, strerror */ #include #include /* For the definition of NAME_MAX */ #include #endif -#include -#endif #if defined(SDL_USE_LIBUDEV) typedef enum