3 --- gtk2_ardour/ardour_ui.cc.orig 2010-01-27 07:55:03.000000000 +0000
4 +++ gtk2_ardour/ardour_ui.cc
5 @@ -684,11 +684,15 @@ ARDOUR_UI::check_memory_locking ()
9 +#if defined(_SC_PHYS_PAGES)
10 if ((page_size = sysconf (_SC_PAGESIZE)) < 0 ||(pages = sysconf (_SC_PHYS_PAGES)) < 0) {
13 ram = (int64_t) pages * (int64_t) page_size;
19 if (getrlimit (RLIMIT_MEMLOCK, &limits)) {