1
0
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:
henri
2012-01-08 20:17:38 +00:00
parent ed2fc828ac
commit 659ed2ac89

View File

@@ -73,7 +73,12 @@
#define EPOLL_R_FLAGS (EPOLLIN | EPOLLPRI)
#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 --- */