not generic code

This commit is contained in:
Jacek Jendrzej
2018-03-29 13:17:02 +02:00
parent 840dae319a
commit ef1dbb561e

View File

@@ -195,14 +195,14 @@ void CRCInput::open(bool recheck)
OpenThreads::ScopedLock<OpenThreads::Mutex> 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)