Skip to content

Commit e78cd95

Browse files
author
Al Viro
committed
preparation to switching ->poll() to returning EPOLL...
Signed-off-by: Al Viro <[email protected]>
1 parent 65aaf87 commit e78cd95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/linux/poll.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/sysctl.h>
1212
#include <linux/uaccess.h>
1313
#include <uapi/linux/poll.h>
14+
#include <uapi/linux/eventpoll.h>
1415

1516
extern struct ctl_table epoll_table[]; /* for sysctl */
1617
/* ~832 bytes of stack space used max in sys_select/sys_poll before allocating
@@ -22,7 +23,7 @@ extern struct ctl_table epoll_table[]; /* for sysctl */
2223
#define WQUEUES_STACK_ALLOC (MAX_STACK_ALLOC - FRONTEND_STACK_ALLOC)
2324
#define N_INLINE_POLL_ENTRIES (WQUEUES_STACK_ALLOC / sizeof(struct poll_table_entry))
2425

25-
#define DEFAULT_POLLMASK (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)
26+
#define DEFAULT_POLLMASK (EPOLLIN | EPOLLOUT | EPOLLRDNORM | EPOLLWRNORM)
2627

2728
struct poll_table_struct;
2829

0 commit comments

Comments
 (0)