aboutsummaryrefslogtreecommitdiff
path: root/src/poll.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-22 10:41:58 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-23 10:44:51 +0200
commitdf81a05505514b384d10c9b192137584040e4984 (patch)
tree79c078d9f70668ccb42836489dee3febb2abd7d0 /src/poll.c
parent7d07e1f1bd06b509b8ee4bae4b22338c5e16735a (diff)
downloadlibssh-df81a05505514b384d10c9b192137584040e4984.tar.gz
libssh-df81a05505514b384d10c9b192137584040e4984.tar.xz
libssh-df81a05505514b384d10c9b192137584040e4984.zip
cmake: Check for unistd.h.
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c5
1 files changed, 4 insertions, 1 deletions
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 <sys/select.h>
#include <sys/socket.h>
-#include <unistd.h>
#include <sys/time.h>
#endif /* _WIN32 */
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/*
* This is a poll(2)-emulation using select for systems not providing a native