Ticket #4272: DiskSpace.pm.patch
File DiskSpace.pm.patch, 653 bytes (added by vincent-opdarw@…, 19 years ago) |
---|
-
Filesys/DiskSpace.pm
old new 89 89 $res = syscall (&main::SYS_statfs, $dir, $fmt); 90 90 # statfs... 91 91 92 if ($^O eq 'freebsd' ) {92 if ($^O eq 'freebsd' || $^O eq 'darwin') { 93 93 # only tested with FreeBSD 3.0. Should also work with 4.0. 94 my ($f1, $f2); 95 ($f1, $bsize, $f2, $blocks, $bfree, $bavail, $files, $ffree) = 94 (undef, $bsize, undef, $blocks, $bfree, $bavail, $files, $ffree) = 96 95 unpack "L8", $fmt; 97 96 $type = 0; # read it from 'f_type' field ? 98 97 }