$NetBSD$

--- src/util/storage.c.orig	2004-09-18 18:18:46.000000000 +0000
+++ src/util/storage.c
@@ -160,7 +160,7 @@ static void getSizeWithoutSymlinksRec(co
  * @return -1 on errors, otherwise the number of free blocks
  */
 long getBlocksLeftOnDrive(const char * part) {
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__NetBSD__)
   struct statvfs buf;
 
   if (0 == statvfs(part, &buf)) {
