Selaa lähdekoodia

Merge pull request #108364 from Rindbee/use-inotify-to-detect-devices-on-Linux

Use inotify to detect devices for better reliability on Linux
Thaddeus Crews 1 kuukausi sitten
vanhempi
commit
9ba44cb613
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      drivers/sdl/SDL_build_config_private.h

+ 5 - 0
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