]> gitweb @ CieloNegro.org - pkgsrc-ardour.git/blobdiff - patches/patch-ad
it builds!
[pkgsrc-ardour.git] / patches / patch-ad
diff --git a/patches/patch-ad b/patches/patch-ad
new file mode 100644 (file)
index 0000000..d0be8f9
--- /dev/null
@@ -0,0 +1,20 @@
+$NetBSD$
+
+--- gtk2_ardour/ardour_ui.cc.orig      2010-01-27 07:55:03.000000000 +0000
++++ gtk2_ardour/ardour_ui.cc
+@@ -684,11 +684,15 @@ ARDOUR_UI::check_memory_locking ()
+               int64_t ram;
+               long pages, page_size;
++#if defined(_SC_PHYS_PAGES)
+               if ((page_size = sysconf (_SC_PAGESIZE)) < 0 ||(pages = sysconf (_SC_PHYS_PAGES)) < 0) {
+                       ram = 0;
+               } else {
+                       ram = (int64_t) pages * (int64_t) page_size;
+               }
++#else
++        ram = 0;
++#endif
+               if (getrlimit (RLIMIT_MEMLOCK, &limits)) {
+                       return;