diff options
Diffstat (limited to 'src/poll.hpp')
-rw-r--r-- | src/poll.hpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/poll.hpp b/src/poll.hpp index c192a77..879f4ee 100644 --- a/src/poll.hpp +++ b/src/poll.hpp @@ -26,8 +26,22 @@ #if defined XS_USE_ASYNC_POLL -#include <poll.h> #include <stddef.h> + +#if HAVE_SYS_TYPES +# include <sys/types.h> +#endif + +#if HAVE_SYS_SELECT_H +# include <sys/select.h> +#endif + +#if HAVE_POLL_H +# include <poll.h> +#elif HAVE_SYS_POLL_H +# include <sys/poll.h> +#endif + #include <vector> #include "fd.hpp" |