$NetBSD: patch-au,v 1.5 2005/09/06 08:10:59 abs Exp $ --- ../setup2/mow/source/loader/loader.c.orig 2004-05-07 17:13:38.000000000 +0200 +++ ../setup2/mow/source/loader/loader.c @@ -83,10 +83,20 @@ #ifdef LINUX # include # define statvfs statfs -#elif defined(NETBSD) || defined(FREEBSD) || defined(MACOSX) +#elif defined(FREEBSD) || defined(MACOSX) # include # include # define statvfs statfs +#elif defined(NETBSD) +#include +# if __NetBSD_Version__ >= 299000900 + /* NetBSD 2.99.9 switched to statvfs() */ +# include +# else + /* before NetBSD 2.99.9 */ +# include +# define statvfs statfs +# endif #else # include #endif