File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 68
68
#include <stdbool.h>
69
69
#include <stdint.h>
70
70
#include <sys/stat.h>
71
- #include <sys/vfs .h>
71
+ #include <sys/statvfs .h>
72
72
#include <stubinfo.h>
73
73
#include <process.h>
74
74
#include <sys/segments.h>
@@ -2493,7 +2493,7 @@ static void perform_dir(const char *arg)
2493
2493
int use_pause = 0 ;
2494
2494
unsigned long long avail ; //was double avail; --Salvo
2495
2495
finddata_t ff ;
2496
- struct statfs sf ;
2496
+ struct statvfs sf ;
2497
2497
int rc ;
2498
2498
unsigned int attrib = FA_DIREC + FA_RDONLY + FA_ARCH + FA_SYSTEM + FA_HIDDEN , first ;
2499
2499
unsigned long filecount = 0 , dircount = 0 , bytecount = 0 ;
@@ -2639,7 +2639,7 @@ static void perform_dir(const char *arg)
2639
2639
printf ("%10lu file(s) %14lu bytes\n" , filecount , bytecount );
2640
2640
printf ("%10lu dir(s) " , dircount );
2641
2641
2642
- rc = statfs (full_filespec , & sf );
2642
+ rc = statvfs (full_filespec , & sf );
2643
2643
if (rc == 0 ) {
2644
2644
avail = (unsigned long long )sf .f_bavail * sf .f_bsize ;
2645
2645
if (avail < 1048576 )
@@ -2651,7 +2651,7 @@ static void perform_dir(const char *arg)
2651
2651
else
2652
2652
printf ("%15.1f GB free\n" , avail / 1024.0 / 1024.0 / 1024.0 );
2653
2653
} else {
2654
- printf ("statfs () failed\n" );
2654
+ printf ("statvfs () failed\n" );
2655
2655
}
2656
2656
}
2657
2657
You can’t perform that action at this time.
0 commit comments