get_mounted_filesystems() should use getmntent() if that function is

present, rather than just if configure didn't find anything better for
filesystem_type_uncached() to use than that.
This commit is contained in:
James Youngman
2004-11-21 14:25:21 +00:00
parent 455a07b0dd
commit b4580720bb

View File

@@ -389,7 +389,7 @@ filesystem_type_uncached (const char *path, const char *relpath, const struct st
char *
get_mounted_filesystems (void)
{
#ifdef FSTYPE_MNTENT /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */
#ifdef HAVE_GETMNTENT
char *table = MOUNTED;
FILE *mfp;
struct mntent *mnt;