From: Bruno Haible Date: Sun, 24 Jul 2011 10:16:47 +0000 (+0200) Subject: fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a49d519a875d441918b7bcb292d7d046cc7853ac;p=pspp fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X. * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE. * modules/fsusage (Depends-on): Add largefile. --- diff --git a/ChangeLog b/ChangeLog index 82540a14ab..aba4b49839 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-07-24 Bruno Haible + + fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X. + * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE. + * modules/fsusage (Depends-on): Add largefile. + 2011-07-24 Paul Eggert * README: Modernize discussion of signed integers. diff --git a/m4/fsusage.m4 b/m4/fsusage.m4 index 41c06bc9e8..d595c9baa9 100644 --- a/m4/fsusage.m4 +++ b/m4/fsusage.m4 @@ -1,4 +1,4 @@ -# serial 28 +# serial 29 # Obtaining file system usage information. # Copyright (C) 1997-1998, 2000-2001, 2003-2011 Free Software Foundation, Inc. @@ -29,6 +29,12 @@ AC_DEFUN([gl_FSUSAGE], AC_DEFUN([gl_FILE_SYSTEM_USAGE], [ +dnl Enable large-file support. This has the effect of changing the size +dnl of field f_blocks in 'struct statvfs' from 32 bit to 64 bit on +dnl glibc/Hurd, HP-UX 11, Solaris (32-bit mode). It also changes the size +dnl of field f_blocks in 'struct statfs' from 32 bit to 64 bit on +dnl MacOS X >= 10.5 (32-bit mode). +AC_REQUIRE([AC_SYS_LARGEFILE]) AC_MSG_NOTICE([checking how to get file system space usage]) ac_fsusage_space=no diff --git a/modules/fsusage b/modules/fsusage index 33d956f2da..b447525460 100644 --- a/modules/fsusage +++ b/modules/fsusage @@ -7,6 +7,7 @@ lib/fsusage.c m4/fsusage.m4 Depends-on: +largefile stdbool stdint full-read [test $gl_cv_fs_space = yes]