X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=pkgsrc-ardour.git;a=blobdiff_plain;f=patches%2Fpatch-ad;fp=patches%2Fpatch-ad;h=d0be8f9b4d7deabd70f796a0225f1d032cef9645;hp=0000000000000000000000000000000000000000;hb=328ad6e4ef531302d91a4ebd2e23689fae9c70d3;hpb=d487ddad7c9f92f601b1a617fd89c4c94b0c77c9 diff --git a/patches/patch-ad b/patches/patch-ad new file mode 100644 index 0000000..d0be8f9 --- /dev/null +++ b/patches/patch-ad @@ -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;