summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-02-10 23:27:02 +1100
committerDarren Tucker <dtucker@dtucker.net>2022-02-10 23:51:02 +1100
commit9fa63a19f68bc87452d3cf5c577cafad2921b7a4 (patch)
treedebc97b38051974c3b2ce7f49885d07f02ff632c
parent3ac00dfeb54b252c15dcbf1971582e9e3b946de6 (diff)
Put poll.h inside ifdef.
-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>