diff --git a/include/sys/epoll.h b/include/sys/epoll.h index 2652b8d8af..e9f9405467 100644 --- a/include/sys/epoll.h +++ b/include/sys/epoll.h @@ -40,6 +40,9 @@ * Included Files ****************************************************************************/ +#include +#include + #include #include @@ -91,12 +94,17 @@ enum #define EPOLL_CLOEXEC EPOLL_CLOEXEC }; -typedef union poll_data +union epoll_data { FAR void *ptr; int fd; uint32_t u32; -} epoll_data_t; +#ifdef CONFIG_HAVE_LONG_LONG + uint64_t u64; +#endif +}; + +typedef union epoll_data epoll_data_t; struct epoll_event {