summaryrefslogtreecommitdiffstats
path: root/minui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-11 17:35:52 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-12 15:20:35 +0100
commit452e420a2ec339592f5590abbc5dec4ea764521d (patch)
tree4e7b0d54bfcebc97f7ffc8930f2a9ab6a4419e7e /minui
parentThis fixes kernel panic on find7 when disabling MTP before flashing zips. (diff)
downloadandroid_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar.gz
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar.bz2
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar.lz
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar.xz
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.tar.zst
android_bootable_recovery-452e420a2ec339592f5590abbc5dec4ea764521d.zip
Diffstat (limited to 'minui')
-rw-r--r--minui/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/minui/events.c b/minui/events.c
index df7dad448..b8cf15ab4 100644
--- a/minui/events.c
+++ b/minui/events.c
@@ -84,7 +84,11 @@ int ev_init(ev_callback input_cb, void *data)
continue;
}
+#ifdef EPOLLWAKEUP
ev.events = EPOLLIN | EPOLLWAKEUP;
+#else
+ ev.events = EPOLLIN;
+#endif
ev.data.ptr = (void *)&ev_fdinfo[ev_count];
if (epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev)) {
close(fd);
@@ -118,7 +122,11 @@ int ev_add_fd(int fd, ev_callback cb, void *data)
if (ev_misc_count == MAX_MISC_FDS || cb == NULL)
return -1;
+#ifdef EPOLLWAKEUP
ev.events = EPOLLIN | EPOLLWAKEUP;
+#else
+ ev.events = EPOLLIN;
+#endif
ev.data.ptr = (void *)&ev_fdinfo[ev_count];
ret = epoll_ctl(epollfd, EPOLL_CTL_ADD, fd, &ev);
if (!ret) {