From 27bae9aa6eb1fe1f4ec9831743e3803e782e9846 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 29 Mar 2018 13:17:02 +0200 Subject: [PATCH] not generic code Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9968eee58ffe5c052d72228ae1fcdbd016f390de Author: Jacek Jendrzej Date: 2018-03-29 (Thu, 29 Mar 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/rcinput.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)