From 77f33f36421284eaa3109a005186cfd3322acfda Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 4 Apr 2018 21:32:44 +0200 Subject: [PATCH] device: never use inotify_init1(), it is not in older kernels --- panda/src/device/linuxInputDeviceManager.cxx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/panda/src/device/linuxInputDeviceManager.cxx b/panda/src/device/linuxInputDeviceManager.cxx index 8278edd226..114ac144e3 100644 --- a/panda/src/device/linuxInputDeviceManager.cxx +++ b/panda/src/device/linuxInputDeviceManager.cxx @@ -32,12 +32,8 @@ LinuxInputDeviceManager:: LinuxInputDeviceManager() { // Use inotify to watch /dev/input for hotplugging of devices. -#if !defined(__ANDROID_API__) || __ANDROID_API__ >= 21 - _inotify_fd = inotify_init1(IN_NONBLOCK | IN_CLOEXEC); -#else _inotify_fd = inotify_init(); fcntl(_inotify_fd, O_NONBLOCK | O_CLOEXEC); -#endif if (_inotify_fd < 0) { device_cat.error()