]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: ensure sys/select.h is included
authorPádraig Brady <P@draigBrady.com>
Wed, 30 Jan 2019 04:44:23 +0000 (20:44 -0800)
committerPádraig Brady <P@draigBrady.com>
Mon, 4 Feb 2019 01:18:08 +0000 (17:18 -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
src/tail.c

index 02e70b379cc6c2e0e94c4fff49dee9b9ccb5a0e5..fb36918428fda26dd61a2aef2229bdcb7f6dcab8 100644 (file)
@@ -221,6 +221,7 @@ gnulib_modules="
   save-cwd
   savedir
   savewd
+  select
   selinux-at
   setenv
   settime
index 8fab0499dc6ace8f9765a46d02939c015ccf105d..fdbec07ad7395790bdff78cca10f826c4e0237a0 100644 (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.  */