Do not include <sys/select> globally via "lib/global.h".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2019-09-22 17:29:50 +03:00
parent 7a602de0d2
commit 0dacce4228
6 changed files with 29 additions and 6 deletions

View File

@ -58,10 +58,6 @@
#endif /* !O_NDELAY */
#endif /* !O_NONBLOCK */
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#if defined(__QNX__) && !defined(__QNXNTO__)
/* exec*() from <process.h> */
#include <unix.h>

View File

@ -40,9 +40,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#else
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#endif
#include "lib/global.h"

View File

@ -32,8 +32,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#else
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#endif
#include "lib/global.h"
#include "lib/util.h" /* is_printable() */

View File

@ -58,10 +58,14 @@
#include <config.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h> /* gettimeofday() */
#include <inttypes.h> /* uintmax_t */
#include <stdarg.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#include <sys/time.h> /* gettimeofday() */
#include <sys/types.h>
#include <unistd.h>
#include "lib/global.h"

View File

@ -63,6 +63,12 @@
#include <errno.h>
#include <string.h>
#include <signal.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#else
#include <sys/time.h>
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/wait.h>
#ifdef HAVE_SYS_IOCTL_H

View File

@ -27,6 +27,14 @@
#include <config.h>
#include <errno.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#else
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#endif
#include "lib/global.h"
#include "lib/util.h"