$NetBSD: patch-ac,v 1.8 2007/12/02 12:55:10 wiz Exp $ --- src/stat.c.orig 2007-03-18 22:36:43.000000000 +0100 +++ src/stat.c @@ -148,6 +148,12 @@ statfs (char const *filename, struct fs_ #define hextobin(c) ((c) >= 'a' && (c) <= 'f' ? (c) - 'a' + 10 : \ (c) >= 'A' && (c) <= 'F' ? (c) - 'A' + 10 : (c) - '0') +#if (defined(__NetBSD__) && (__NetBSD_Version__ > 299000900)) || defined(__INTERIX) +#include +#define statfs statvfs +#define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME f_fstypename +#endif + #define PROGRAM_NAME "stat" #define AUTHORS "Michael Meskes"