From: Jim Meyering Date: Fri, 13 Jul 2007 14:39:43 +0000 (+0000) Subject: df: Don't fail for Tru64's "file-on-file mount". X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a39483e4437689768808245226e17f1be0029e3;p=pspp df: Don't fail for Tru64's "file-on-file mount". * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs, so we fall through and use statfs instead. Details here: Reported by Albert Chin. --- diff --git a/ChangeLog b/ChangeLog index 6c4d01ec73..54cd538482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-07-13 Jim Meyering + + df: Don't fail for Tru64's "file-on-file mount". + * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs, + so we fall through and use statfs instead. Details here: + + Reported by Albert Chin. + 2007-07-13 Bruno Haible * modules/alloca-opt (License): Use the synonymous term "LGPLv2+". diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index 08bf06c9ab..18eedbca56 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,8 +1,7 @@ -#serial 22 +#serial 23 # Obtaining file system usage information. -# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005, 2006 Free Software -# Foundation, Inc. +# Copyright (C) 1997, 1998, 2000, 2001, 2003-2007 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -55,6 +54,11 @@ one of the corresponding file systems is hard-mounted, but not available. statvfs in GNU libc on BeOS operates differently: it only makes a system call. #endif + +#ifdef __osf__ +"Do not use Tru64's statvfs implementation" +#endif + #include ], [struct statvfs fsd; statvfs (0, &fsd);], fu_cv_sys_stat_statvfs=yes,