api: fix definition of EPOLLONESHOT to match Linux
This commit is contained in:
parent
4dfe24747e
commit
7958b3048f
@ -19,7 +19,7 @@ enum EPOLL_EVENTS {
|
||||
EPOLLWRBAND = (int) (1U << 9),
|
||||
EPOLLMSG = (int) (1U << 10), /* Never reported. */
|
||||
EPOLLRDHUP = (int) (1U << 13),
|
||||
EPOLLONESHOT = (int) (1U << 31)
|
||||
EPOLLONESHOT = (int) (1U << 30)
|
||||
};
|
||||
|
||||
#define EPOLLIN (1U << 0)
|
||||
@ -33,7 +33,7 @@ enum EPOLL_EVENTS {
|
||||
#define EPOLLWRBAND (1U << 9)
|
||||
#define EPOLLMSG (1U << 10)
|
||||
#define EPOLLRDHUP (1U << 13)
|
||||
#define EPOLLONESHOT (1U << 31)
|
||||
#define EPOLLONESHOT (1U << 30)
|
||||
|
||||
#define EPOLL_CTL_ADD 1
|
||||
#define EPOLL_CTL_MOD 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user