mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
freebsd: implement pa_get_binary_name
Stolen from http://www.freebsd.org/cgi/cvsweb.cgi/ports/audio/pulseaudio/files/patch-src_pulse_util.c?rev=1.1 and fixed for indentation.
This commit is contained in:
parent
fe0b393f7a
commit
5aa5c6c196
1 changed files with 11 additions and 0 deletions
|
|
@ -189,7 +189,18 @@ char *pa_get_binary_name(char *s, size_t l) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#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
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_GET_NAME)
|
#if defined(HAVE_SYS_PRCTL_H) && defined(PR_GET_NAME)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue