1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ak,v 1.1 2008/07/31 03:58:05 bjs Exp $
Yuck. At least let's attempt to make this somewhat sane.
When I have the time and figure out the Right Thing(tm)
to do, perhaps I'll rewrite some of the shm code.
--- libjack/unlock.c.orig 2008-07-27 08:50:23.000000000 -0400
+++ libjack/unlock.c
@@ -48,6 +48,7 @@ static char* library_roots[] = {
"/usr/X11R6/lib",
"/opt/lib", /* solaris-y */
"/opt/local/lib", /* common on OS X */
+ "@PREFIX@", /* pkgsrc prefix */
NULL
};
@@ -63,7 +64,7 @@ cleanup_mlock ()
int whoknows;
int looks_like_library;
- snprintf (path, sizeof(path), "/proc/%d/maps", getpid());
+ snprintf (path, sizeof(path), "@JACKD_PROCFS_PATH@/%d/maps", getpid());
if ((map = fopen (path, "r")) == NULL) {
jack_error ("can't open map file");
|