Include poll.h and friends for struct pollfd.

This commit is contained in:
Darren Tucker 2021-08-07 11:30:57 +10:00
parent a9e2c53319
commit 397c4d72e5

View File

@ -37,6 +37,13 @@
#include <dirent.h>
#include <errno.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#else
# ifdef HAVE_SYS_POLL_H
# include <sys/poll.h>
# endif
#endif
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>