mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 01:46:57 +08:00
sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break
dbus/dbus/dbus-pollable-set-epoll.c:258:18: error: ‘EPOLLET’ undeclared
(first use in this function); did you mean ‘EPOLLERR’?
258 | event.events = EPOLLET;
| ^~~~~~~
| EPOLLERR
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
ac3a667860
commit
f325ed7180
@@ -84,6 +84,8 @@ enum EPOLL_EVENTS
|
||||
#define EPOLLWAKEUP EPOLLWAKEUP
|
||||
EPOLLONESHOT = 1u << 30,
|
||||
#define EPOLLONESHOT EPOLLONESHOT
|
||||
EPOLLET = 1u << 31,
|
||||
#define EPOLLET EPOLLET
|
||||
};
|
||||
|
||||
/* Flags to be passed to epoll_create1. */
|
||||
|
||||
Reference in New Issue
Block a user