summaryrefslogtreecommitdiff
path: root/audio/audacity/patches/patch-as
diff options
context:
space:
mode:
Diffstat (limited to 'audio/audacity/patches/patch-as')
-rw-r--r--audio/audacity/patches/patch-as25
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/audacity/patches/patch-as b/audio/audacity/patches/patch-as
new file mode 100644
index 00000000000..9f9d10bef80
--- /dev/null
+++ b/audio/audacity/patches/patch-as
@@ -0,0 +1,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;