diff options
author | Darren Tucker <dtucker@dtucker.net> | 2021-08-07 11:30:57 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-08-07 11:30:57 +1000 |
commit | 397c4d72e50023af5fe3aee5cc2ad407a6eb1073 (patch) | |
tree | 97aeea6403651560c7e2d2d87c280a5cc840583e | |
parent | a9e2c533195f28627f205682482d9da384c4c52e (diff) |
Include poll.h and friends for struct pollfd.
-rw-r--r-- | sftp-client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sftp-client.c b/sftp-client.c index 963ad2cc..0cfc1f0d 100644 --- a/sftp-client.c +++ b/sftp-client.c @@ -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> |