Put poll.h inside ifdef HAVE_POLL_H.

This commit is contained in:
Darren Tucker 2021-11-18 23:05:34 +11:00
parent 875408270c
commit b544ce1ad4
3 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>

2
sshd.c
View File

@ -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>