summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-15 23:23:28 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-15 23:23:28 +0000
commit5ce0b45a43fc2de8862a439b6e6281fdd55e27ed (patch)
tree977cb2d08b9d7f4956838aecc8ea25d40c3104d7
parent7b0f6f1559b98597407bf85fd2a283e8ea678bdd (diff)
downloadcoreutils-5ce0b45a43fc2de8862a439b6e6281fdd55e27ed.tar.xz
(USE_STATVFS): Define to 0 if f_type is needed, but
statvfs.f_type not present.
-rw-r--r--src/stat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c
index 4c6047c25..481096d27 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -20,7 +20,8 @@
#include <config.h>
#if (STAT_STATVFS \
- && (HAVE_STRUCT_STATVFS_F_BASETYPE || ! HAVE_STRUCT_STATFS_F_FSTYPENAME))
+ && (HAVE_STRUCT_STATVFS_F_BASETYPE \
+ || (! HAVE_STRUCT_STATFS_F_FSTYPENAME && HAVE_STRUCT_STATVFS_F_TYPE)))
# define USE_STATVFS 1
#else
# define USE_STATVFS 0