]> gitweb @ CieloNegro.org - pkgsrc-ardour.git/blob - patches/patch-ad
it builds!
[pkgsrc-ardour.git] / patches / patch-ad
1 $NetBSD$
2
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 ()
6                 int64_t ram;
7                 long pages, page_size;
8  
9 +#if defined(_SC_PHYS_PAGES)
10                 if ((page_size = sysconf (_SC_PAGESIZE)) < 0 ||(pages = sysconf (_SC_PHYS_PAGES)) < 0) {
11                         ram = 0;
12                 } else {
13                         ram = (int64_t) pages * (int64_t) page_size;
14                 }
15 +#else
16 +        ram = 0;
17 +#endif
18  
19                 if (getrlimit (RLIMIT_MEMLOCK, &limits)) {
20                         return;