[openssh-commits] [openssh] 01/01: Put poll.h inside ifdef.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Feb 10 23:59:19 AEDT 2022


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 9fa63a19f68bc87452d3cf5c577cafad2921b7a4
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Thu Feb 10 23:27:02 2022 +1100

    Put poll.h inside ifdef.
---
 channels.c   | 2 ++
 clientloop.c | 2 ++
 serverloop.c | 2 ++
 3 files changed, 6 insertions(+)

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>

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list