diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-12-30 14:31:33 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2013-12-30 14:31:33 +0200 |
commit | 4c5ec015a4b33015114a66ec2f9c435ba8e41c7d (patch) | |
tree | d21d5224875628331b81528947799377f9b3e676 | |
parent | 337ad25b179d731d4b4e00805d5434ab4992d07b (diff) |
caps: Fix platform checking
The "#elif __FreeBSD__" line caused a warning, because __FreeBSD__ was
not defined.
-rw-r--r-- | src/daemon/caps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/caps.c b/src/daemon/caps.c index 7fc7357ed..4455db3a9 100644 --- a/src/daemon/caps.c +++ b/src/daemon/caps.c @@ -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 " |