summaryrefslogtreecommitdiff
path: root/audio/ardour/patches/patch-libs_ardour_session__state.cc
diff options
context:
space:
mode:
authorkamil <kamil>2016-06-20 08:17:42 +0000
committerkamil <kamil>2016-06-20 08:17:42 +0000
commitf6ae07886149c48ba192f359fcacfba8a7b754e0 (patch)
tree8a12be28c82359f86916cceeeaefddf44c846ddc /audio/ardour/patches/patch-libs_ardour_session__state.cc
parentce8951c50c7c92da6a90d94e69485e339c98d30f (diff)
downloadpkgsrc-f6ae07886149c48ba192f359fcacfba8a7b754e0.tar.gz
Import Ardour-4.7 (ardour4) as audio/ardour
Ardour is a multi-channel digital audio workstation, allowing users to record, edit, mix and master audio and MIDI projects. It is targeted at audio engineers, musicians, soundtrack editors and composers. Originally packaged in pkgsrc-wip by: - myself, - <coypu>, - Thomas Klausner.
Diffstat (limited to 'audio/ardour/patches/patch-libs_ardour_session__state.cc')
-rw-r--r--audio/ardour/patches/patch-libs_ardour_session__state.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/audio/ardour/patches/patch-libs_ardour_session__state.cc b/audio/ardour/patches/patch-libs_ardour_session__state.cc
new file mode 100644
index 00000000000..df7784fb030
--- /dev/null
+++ b/audio/ardour/patches/patch-libs_ardour_session__state.cc
@@ -0,0 +1,32 @@
+$NetBSD: patch-libs_ardour_session__state.cc,v 1.1 2016/06/20 08:17:43 kamil Exp $
+
+Detect free space on NetBSD.
+
+--- libs/ardour/session_state.cc.orig 2016-02-19 01:28:56.000000000 +0000
++++ libs/ardour/session_state.cc
+@@ -2180,7 +2180,7 @@ Session::save_template (string template_
+ void
+ Session::refresh_disk_space ()
+ {
+-#if __APPLE__ || (HAVE_SYS_VFS_H && HAVE_SYS_STATVFS_H)
++#if __APPLE__ || (HAVE_SYS_VFS_H && HAVE_SYS_STATVFS_H) || defined(__NetBSD__)
+
+ Glib::Threads::Mutex::Lock lm (space_lock);
+
+@@ -2190,10 +2190,15 @@ Session::refresh_disk_space ()
+ _total_free_4k_blocks_uncertain = false;
+
+ for (vector<space_and_path>::iterator i = session_dirs.begin(); i != session_dirs.end(); ++i) {
++#if defined(__NetBSD__)
++ struct statvfs statfsbuf;
+
++ statvfs (i->path.c_str(), &statfsbuf);
++#else
+ struct statfs statfsbuf;
+- statfs (i->path.c_str(), &statfsbuf);
+
++ statfs (i->path.c_str(), &statfsbuf);
++#endif
+ double const scale = statfsbuf.f_bsize / 4096.0;
+
+ /* See if this filesystem is read-only */