mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 19:59:02 +00:00
Check for the presence of EPOLLRDHUP in the nsock epoll(7)-based engine as this
flag isn't available on every epoll-compatible systems.
This commit is contained in:
@@ -73,7 +73,12 @@
|
|||||||
|
|
||||||
#define EPOLL_R_FLAGS (EPOLLIN | EPOLLPRI)
|
#define EPOLL_R_FLAGS (EPOLLIN | EPOLLPRI)
|
||||||
#define EPOLL_W_FLAGS EPOLLOUT
|
#define EPOLL_W_FLAGS EPOLLOUT
|
||||||
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLRDHUP | EPOLLHUP)
|
#ifdef EPOLLRDHUP
|
||||||
|
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLRDHUP| EPOLLHUP)
|
||||||
|
#else
|
||||||
|
/* EPOLLRDHUP was introduced later and might be unavailable on older systems. */
|
||||||
|
#define EPOLL_X_FLAGS (EPOLLERR | EPOLLHUP)
|
||||||
|
#endif /* EPOLLRDHUP */
|
||||||
|
|
||||||
|
|
||||||
/* --- ENGINE INTERFACE PROTOTYPES --- */
|
/* --- ENGINE INTERFACE PROTOTYPES --- */
|
||||||
|
|||||||
Reference in New Issue
Block a user