From f325ed71802be197646c1987f4c7b0166ea067d4 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Thu, 10 Nov 2022 21:43:57 +0800 Subject: [PATCH] sys/epool.h: add EPOLLET (edge-triggered) flag to fix compile break MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/sys/epoll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sys/epoll.h b/include/sys/epoll.h index e9f9405467..06fdfca9e7 100644 --- a/include/sys/epoll.h +++ b/include/sys/epoll.h @@ -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. */