build: ensure sys/select.h is included

bootstrap.conf: Explicitly depend on select, rather than transitively.
* src/tail.c: Unconditionally include select.h as we use select()
outside inotify contexts now.
This commit is contained in:
Pádraig Brady committed 2019-02-03 17:18:08 -08:00
1 parent 2e8f885a2a
commit 027eeec7b0
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -221,6 +221,7 @@ gnulib_modules="
save-cwd
savedir
savewd
select
selinux-at
setenv
settime
+1 -2
View File
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <assert.h>
#include <getopt.h>
#include <sys/select.h>
#include <sys/types.h>
#include <signal.h>
#ifdef _AIX
@@ -55,8 +56,6 @@
#if HAVE_INOTIFY
# include "hash.h"
# include <sys/inotify.h>
/* 'select' is used by tail_forever_inotify. */
# include <sys/select.h>
#endif
/* Linux can optimize the handling of local files. */