$NetBSD: patch-at,v 1.5 2005/09/06 08:10:58 abs Exp $ --- ../setup2/mow/source/system/mowos.cxx.orig 2004-05-07 14:54:42.000000000 +0200 +++ ../setup2/mow/source/system/mowos.cxx @@ -84,10 +84,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