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

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Nov 18 23:12:55 AEDT 2021


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

dtucker pushed a commit to branch master
in repository openssh.

commit b544ce1ad4afb7ee2b09f714aa63efffc73fa93a
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Thu Nov 18 23:05:34 2021 +1100

    Put poll.h inside ifdef HAVE_POLL_H.
---
 sftp-server.c | 2 ++
 ssh-keyscan.c | 2 ++
 sshd.c        | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/sftp-server.c b/sftp-server.c
index e1d8868f..a502858d 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -33,7 +33,9 @@
 #include <dirent.h>
 #include <errno.h>
 #include <fcntl.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <pwd.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/ssh-keyscan.c b/ssh-keyscan.c
index ccd21258..92c19974 100644
--- a/ssh-keyscan.c
+++ b/ssh-keyscan.c
@@ -25,7 +25,9 @@
 
 #include <netdb.h>
 #include <errno.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/sshd.c b/sshd.c
index 4e33cc92..296c6e86 100644
--- a/sshd.c
+++ b/sshd.c
@@ -64,7 +64,9 @@
 #include <paths.h>
 #endif
 #include <grp.h>
+#ifdef HAVE_POLL_H
 #include <poll.h>
+#endif
 #include <pwd.h>
 #include <signal.h>
 #include <stdarg.h>

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


More information about the openssh-commits mailing list