]> err.no Git - util-linux/commitdiff
tailf: non-linux support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 17 Dec 2007 23:52:39 +0000 (23:52 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Dec 2007 00:11:42 +0000 (01:11 +0100)
Include <sys/inotify.h> only when inotify_init() was detected

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
text-utils/tailf.c

index e30e22f8828cdedc4be21b704236fed900a0adf4..2f69aabf291627f6b757af09f81d5671f9f85d1d 100644 (file)
@@ -38,7 +38,9 @@
 #include <ctype.h>
 #include <errno.h>
 #include <err.h>
+#ifdef HAVE_INOTIFY_INIT
 #include <sys/inotify.h>
+#endif
 #include "nls.h"
 
 #define DEFAULT_LINES  10