GNU bug report logs -
#5827
[PATCH] tail: include sys/vfs.h
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the coreutils package:
#5827: [PATCH] tail: include sys/vfs.h
It has been closed by Jim Meyering <jim <at> meyering.net>.
Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Jim Meyering <jim <at> meyering.net> by
replying to this email.
--
5827: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5827
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Marc Kleine-Budde wrote:
...
>> I'd like to take a slightly more conservative approach,
>> including sys/vfs.h only when sys/statfs.h is not available.
>> Does this work for you?
>
> Thanks, works, even with older gcc/glibc combinations.
Thanks.
Pushed, along with a gnulib update.
[Message part 3 (message/rfc822, inline)]
Hello,
the latest coreutils release 8.4 and current git master fail during the
(cross-) compilation of tail. The used components are:
gcc-4.3.2
glibc-2.8
binutils-2.18
The following patch fixes the commit. It's against git master, but should
apply on 8.4, too.
Please review and consider inclusion.
Cheers, Marc
From ebf1ab5bcba6f6b82bb8f0a62c949858e2a9d5cc Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl <at> pengutronix.de>
Date: Sat, 3 Apr 2010 14:42:29 +0200
Subject: [PATCH] tail: include sys/vfs.h
This patch fixes the following error:
tail.c: In function 'fremote':
tail.c:882: error: storage size of 'buf' isn't known
tail.c:883: warning: implicit declaration of function 'fstatfs'
Signed-off-by: Marc Kleine-Budde <mkl <at> pengutronix.de>
---
src/tail.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/tail.c b/src/tail.c
index 02c4a1a..d0bc957 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -57,6 +57,9 @@
# if HAVE_SYS_STATFS_H
# include <sys/statfs.h>
# endif
+# if HAVE_SYS_VFS_H
+# include <sys/vfs.h>
+# endif
#endif
/* The official name of this program (e.g., no `g' prefix). */
--
1.7.0.3
This bug report was last modified 15 years and 54 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.