Put poll.h inside ifdef.

This commit is contained in:
Darren Tucker 2022-02-10 23:27:02 +11:00
parent 3ac00dfeb5
commit 9fa63a19f6
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

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