daemon: Debian/kFreeBSD 9.2 fails to compile due to caps
authorPeter Meerwald <pmeerw@pmeerw.net>
Mon, 1 Sep 2014 20:53:29 +0000 (22:53 +0200)
committerPeter Meerwald <pmeerw@pmeerw.net>
Tue, 2 Sep 2014 17:35:51 +0000 (19:35 +0200)
commitc6bc835e4572e682c8f09ddc5852ed63da1838d4
treed373e2b344206edfc287da0cf34c72ee1c0b6e54
parent58cffdcfc8674e96e9faeaf726a4b86aebdc427b
daemon: Debian/kFreeBSD 9.2 fails to compile due to caps

Debian/kFreeBSD 9.2 comes with sys/capability.h but it is not usable; work around it

the patch does several things:
* it makes the comment point to the correct bugtracker issue: https://bugs.freedesktop.org/show_bug.cgi?id=72580
* it handles Debian/kFreeBSD the same way as FreeBSD
* it logs a warning that capabilities are actually NOT dropped

daemon/caps.c: In function ‘pa_drop_caps’:
daemon/caps.c:93:2: error: #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."
  ^
Makefile:9575: recipe for target 'daemon/pulseaudio-caps.o' failed

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
src/daemon/caps.c