summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels.c2
-rw-r--r--clientloop.c2
-rw-r--r--serverloop.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/channels.c b/channels.c
index cceac032..d662ff03 100644
--- a/channels.c
+++ b/channels.c
@@ -57,7 +57,9 @@
#include <fcntl.h>
#include <limits.h>
#include <netdb.h>
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
#include <stdarg.h>
#ifdef HAVE_STDINT_H
# include <stdint.h>
diff --git a/clientloop.c b/clientloop.c
index fd190980..f8350e67 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -76,7 +76,9 @@
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/serverloop.c b/serverloop.c
index 15beac2d..0541f028 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -50,7 +50,9 @@
#include <fcntl.h>
#include <pwd.h>
#include <limits.h>
+#ifdef HAVE_POLL_H
#include <poll.h>
+#endif
#include <signal.h>
#include <string.h>
#include <termios.h>