From cec5a129f52f23d1823c486f24454564e1aafca5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 12 Aug 2021 15:49:33 -0700
Subject: [PATCH] Fixed libudev hotplug notifications in the HIDAPI driver
---
src/joystick/hidapi/SDL_hidapijoystick.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/joystick/hidapi/SDL_hidapijoystick.c b/src/joystick/hidapi/SDL_hidapijoystick.c
index 23fb07659c..0aa850d13a 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