X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ffsusage.c;h=c669c5e3690d591ba8ac694896db283111e66e49;hb=7b7f6d343eb133e6fb670a982ef4b6b3e13256cb;hp=34093a3a10cd7cb9961663022bc10148e422ecee;hpb=6d8337bfc808cddc275899c03482eceb6aff8547;p=gnulib.git diff --git a/lib/fsusage.c b/lib/fsusage.c index 34093a3a1..c669c5e36 100644 --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -37,6 +37,10 @@ int statfs (); #include #endif +#ifdef HAVE_SYS_FS_S5PARAM_H /* Fujitsu UXP/V */ +#include +#endif + #if defined(HAVE_SYS_FILSYS_H) && !defined(_CRAY) #include /* SVR2. */ #endif @@ -179,8 +183,11 @@ get_fs_usage (path, disk, fsp) /* Empirically, the block counts on most SVR3 and SVR3-derived systems seem to always be in terms of 512-byte blocks, no matter what value f_bsize has. */ -# if _AIX +# if _AIX || defined(_CRAY) # define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_bsize, 512) +# ifdef _CRAY +# define f_bavail f_bfree +# endif # else # define CONVERT_BLOCKS(b) (b) # ifndef _SEQUENT_ /* _SEQUENT_ is DYNIX/ptx. */