diff options
Diffstat (limited to 'audio/pulseaudio/files/patch-src_pulse_util.c')
| -rw-r--r-- | audio/pulseaudio/files/patch-src_pulse_util.c | 20 |
1 files changed, 20 insertions, 0 deletions
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) + { |
