mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
caps: Fix platform checking
The "#elif __FreeBSD__" line caused a warning, because __FreeBSD__ was not defined.
This commit is contained in:
parent
337ad25b17
commit
4c5ec015a4
1 changed files with 3 additions and 3 deletions
|
|
@ -80,16 +80,16 @@ void pa_drop_root(void) {
|
|||
|
||||
void pa_drop_caps(void) {
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#ifdef __linux
|
||||
#if defined(__linux)
|
||||
cap_t caps;
|
||||
pa_assert_se(caps = cap_init());
|
||||
pa_assert_se(cap_clear(caps) == 0);
|
||||
pa_assert_se(cap_set_proc(caps) == 0);
|
||||
pa_assert_se(cap_free(caps) == 0);
|
||||
#elif __FreeBSD__
|
||||
#elif defined(__FreeBSD__)
|
||||
pa_assert_se (cap_enter () == 0);
|
||||
#else
|
||||
#error Don't know how to do capabilities on your system. Please send a patch.
|
||||
#error "Don't know how to do capabilities on your system. Please send a patch."
|
||||
#endif /* __linux */
|
||||
#else /* HAVE_SYS_CAPABILITY_H */
|
||||
pa_log_warn("Normally all extra capabilities would be dropped now, but "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue