coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] build: ensure sys/select.h is included


From: Pádraig Brady
Subject: [PATCH] build: ensure sys/select.h is included
Date: Tue, 29 Jan 2019 20:55:41 -0800

bootstrap.conf: Explicitly depend on select, rather than transitively.
* src/tail.c: Unconditionally include select.h as we use select()
outside inotify contexts now.
---
 bootstrap.conf | 1 +
 src/tail.c     | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bootstrap.conf b/bootstrap.conf
index 02e70b3..fb36918 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -221,6 +221,7 @@ gnulib_modules="
   save-cwd
   savedir
   savewd
+  select
   selinux-at
   setenv
   settime
diff --git a/src/tail.c b/src/tail.c
index 8fab049..fdbec07 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -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.  */
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]