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:
dongjiuzhu1 2022-11-10 21:43:57 +08:00 committed by Alan Carvalho de Assis
parent ac3a667860
commit f325ed7180
1 changed files with 2 additions and 0 deletions

View File

@ -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. */