$NetBSD: patch-ad,v 1.2 2001/01/16 21:59:32 cjones Exp $ Use the correct name for the statvfs struct. --- common-src/statfs.c.orig Sun May 23 11:11:18 1999 +++ common-src/statfs.c Thu Jan 11 12:53:12 2001 @@ -55,7 +55,15 @@ */ # include # define STATFS_TYP "SVR4 (Irix-5+, Solaris-2, Linux glibc 2.1)" +#if defined(__sun__) && defined(__svr4__) +#if defined(_LARGEFILE64_SOURCE) +# define STATFS_STRUCT statvfs64_t +#else +# define STATFS_STRUCT statvfs_t +#endif /* largefile source */ +#else # define STATFS_STRUCT struct statvfs +#endif /* !Solaris */ # define STATFS_TOTAL(buf) (buf).f_blocks # define STATFS_AVAIL(buf) (buf).f_bavail # define STATFS_FREE(buf) (buf).f_bfree