$NetBSD: patch-ac,v 1.3 2004/05/07 13:50:37 adam Exp $ --- src/mntent_wrap.c.orig 2004-05-07 15:22:04.000000000 +0000 +++ src/mntent_wrap.c @@ -100,6 +100,9 @@ gint mne_endmntent(FILE *filep) #include #include #include +#ifdef HAVE_STRUCT_STATVFS +#include +#endif /* A pointer to one of these is returned by mne_setmntent(), depending on which file ** name is given as an input. Note that on BSD systems, the system calls themselves @@ -115,7 +118,11 @@ static FILE f_fstab, f_mtab; ** a call to getmntinfo(). The mtab_pos and mtab_num integers are then used to ** keep track of where in the returned array of statfs structs we are. */ +#ifdef HAVE_STRUCT_STATVFS +static struct statvfs *mtab = NULL; +#else static struct statfs *mtab = NULL; +#endif static guint mtab_pos = 0, mtab_num = 0; /* 1999-05-09 - An attempt at a BSD implementation, after having received input from