From 085701290395d57e3ac0b1844756b9faac06e3c7 Mon Sep 17 00:00:00 2001 From: kwm Date: Fri, 20 Nov 2009 12:17:14 +0000 Subject: Update to 0.9.20. Tweak shm_open to set 0644 instead of 0444, shm_unlink() needs write permissions on the shared memory object. [1] Submitted by: Eric L. Chen [1] git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13226 df743ca5-7f9a-e211-a948-0013205c9059 --- audio/pulseaudio/files/patch-src_pulse_util.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 audio/pulseaudio/files/patch-src_pulse_util.c (limited to 'audio/pulseaudio/files/patch-src_pulse_util.c') diff --git a/audio/pulseaudio/files/patch-src_pulse_util.c b/audio/pulseaudio/files/patch-src_pulse_util.c new file mode 100644 index 000000000..2fa4de0bc --- /dev/null +++ b/audio/pulseaudio/files/patch-src_pulse_util.c @@ -0,0 +1,20 @@ +--- src/pulse/util.c.orig 2008-01-01 17:29:31.000000000 -0500 ++++ src/pulse/util.c 2008-01-01 17:29:00.000000000 -0500 +@@ -184,6 +184,17 @@ char *pa_get_binary_name(char *s, size_t + } + + #endif ++#ifdef __FreeBSD__ ++ { ++ char *rp; ++ ++ if ((rp = pa_readlink("/proc/curproc/file"))) { ++ pa_strlcpy(s, pa_path_get_filename(rp), l); ++ pa_xfree(rp); ++ return s; ++ } ++ } ++#endif + + #if defined(HAVE_SYS_PRCTL_H) && defined(PR_GET_NAME) + { -- cgit