$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;