Use inotify to detect devices for better reliability on Linux
Fix the issue that some devices were not detected when hot plugged.
This commit is contained in:
parent
53be3b78d1
commit
f82008d1a5
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue