Commit cec5a129f52f23d1823c486f24454564e1aafca5

Sam Lantinga 2021-08-12T15:49:33

Fixed libudev hotplug notifications in the HIDAPI driver

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index 23fb076..0aa850d 100644
--- a/src/joystick/hidapi/SDL_hidapijoystick.c
+++ b/src/joystick/hidapi/SDL_hidapijoystick.c
@@ -47,8 +47,8 @@
 #include <IOKit/usb/USBSpec.h>
 #endif
 
-#ifdef SDL_USE_LIBUDEV
 #include "../../core/linux/SDL_udev.h"
+#ifdef SDL_USE_LIBUDEV
 #include <poll.h>
 #include <unistd.h>
 #endif