From df81a05505514b384d10c9b192137584040e4984 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 22 Jul 2013 10:41:58 +0200 Subject: cmake: Check for unistd.h. --- src/poll.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/poll.c') diff --git a/src/poll.c b/src/poll.c index 85ee655d..bde0198d 100644 --- a/src/poll.c +++ b/src/poll.c @@ -115,10 +115,13 @@ static poll_fn ssh_poll_emu; #else /* _WIN32 */ #include #include -#include #include #endif /* _WIN32 */ +#ifdef HAVE_UNISTD_H +#include +#endif + /* * This is a poll(2)-emulation using select for systems not providing a native -- cgit v1.2.1