$NetBSD: patch-as,v 1.1 2002/10/04 08:59:38 jlam Exp $

--- DiskFunctions.cpp.orig	Wed Jun  5 00:51:19 2002
+++ DiskFunctions.cpp
@@ -18,6 +18,11 @@
 #include <sys/vfs.h>
 #endif
 
+#if defined(__FreeBSD__) || defined(__NetBSD__)
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
+
 #include <iostream.h>
 #include <stdio.h>              //the std I/O stuff
 #include <wx/longlong.h>
@@ -167,7 +172,7 @@ wxLongLong GetFreeDiskSpace(const char *
    return freeBytes;
 }
 #elif defined(__WXGTK__)
-#ifdef linux
+#if defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__)
 wxLongLong GetFreeDiskSpace(const char *path)
 {
    struct statfs theStats;
