diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 60acb0021..410527b03 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -198,14 +198,14 @@ void CRCInput::open(bool recheck) OpenThreads::ScopedLock m_lock(mutex); struct in_dev id; + +#if !HAVE_GENERIC_HARDWARE DIR *dir; dir = opendir("/dev/input"); if (! dir) { printf("[rcinput:%s] opendir failed: %m\n", __func__); return; } - -#if !HAVE_GENERIC_HARDWARE unsigned long evbit; struct dirent *dentry; while ((dentry = readdir(dir)) != NULL)