From f82008d1a50babaf82970b3ece7cffa01e9570d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E9=9D=92=E5=B1=B1?= Date: Mon, 7 Jul 2025 09:15:27 +0800 Subject: [PATCH] Use inotify to detect devices for better reliability on Linux Fix the issue that some devices were not detected when hot plugged. --- drivers/sdl/SDL_build_config_private.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/sdl/SDL_build_config_private.h b/drivers/sdl/SDL_build_config_private.h index 1282b1434d5..a7f8d08488d 100644 --- a/drivers/sdl/SDL_build_config_private.h +++ b/drivers/sdl/SDL_build_config_private.h @@ -84,6 +84,11 @@ #define HAVE_LINUX_INPUT_H 1 #define HAVE_POLL 1 +#ifdef __linux__ +#define HAVE_INOTIFY 1 +#define HAVE_INOTIFY_INIT1 1 +#endif + // TODO: handle dynamic loading with SOWRAP_ENABLED // (even though DBus can also be loaded with SOWRAP_ENABLED, we load it