blob: 9f9d10bef802e7f4778a8f9770ff32a1ddcb3174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$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;
|