diff options
-rw-r--r-- | lib/mountlist.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c index 70d4edb..a1dca0a 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c | |||
@@ -101,6 +101,11 @@ char *strstr (); | |||
101 | # include <sys/statfs.h> | 101 | # include <sys/statfs.h> |
102 | #endif | 102 | #endif |
103 | 103 | ||
104 | #ifdef STAT_STATVFS | ||
105 | # include <sys/statvfs.h> | ||
106 | # define statfs statvfs | ||
107 | #endif | ||
108 | |||
104 | #ifdef MOUNTED_LISTMNTENT | 109 | #ifdef MOUNTED_LISTMNTENT |
105 | # include <mntent.h> | 110 | # include <mntent.h> |
106 | #endif | 111 | #endif |
@@ -162,7 +167,7 @@ char *strstr (); | |||
162 | 167 | ||
163 | #if MOUNTED_GETMNTINFO | 168 | #if MOUNTED_GETMNTINFO |
164 | 169 | ||
165 | # if ! HAVE_F_FSTYPENAME_IN_STATFS | 170 | # if ! HAVE_F_FSTYPENAME_IN_STATFS && ! STAT_STATVFS |
166 | static char * | 171 | static char * |
167 | fstype_to_string (short int t) | 172 | fstype_to_string (short int t) |
168 | { | 173 | { |
@@ -262,7 +267,7 @@ fstype_to_string (short int t) | |||
262 | static char * | 267 | static char * |
263 | fsp_to_string (const struct statfs *fsp) | 268 | fsp_to_string (const struct statfs *fsp) |
264 | { | 269 | { |
265 | # if defined HAVE_F_FSTYPENAME_IN_STATFS | 270 | # if defined HAVE_F_FSTYPENAME_IN_STATFS || defined STAT_STATVFS |
266 | return (char *) (fsp->f_fstypename); | 271 | return (char *) (fsp->f_fstypename); |
267 | # else | 272 | # else |
268 | return fstype_to_string (fsp->f_type); | 273 | return fstype_to_string (fsp->f_type); |