[pulseaudio-tickets] [Bug 72580] pulseaudio's use of sys/capability.h is non-POSIX

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 10 14:09:55 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=72580

--- Comment #1 from desrt <desrt at desrt.ca> ---
Created attachment 90593
  --> https://bugs.freedesktop.org/attachment.cgi?id=90593&action=edit
[PATCH] Add support for FreeBSD <sys/capability.h>

cap_init() and friends are Linux-specific, so only use them if we're on
Linux.

Add support for FreeBSD capabilities if we find <sys/capability.h> to be
available there.

Add an #else (not Linux or FreeBSD) case with an #error requesting
contributions for other platforms.

This patch keeps the cap_init check in configure.ac but removes the
error if it fails.  This will ensure we link to -lcap if needed, but
won't fail for the case that capabilities are part of the core system
(as on FreeBSD).

We do however, modify the header check to ensure we fail if there is no
<sys/capability.h> at all, forcing --without-caps to be explicitly
specified to make the failure go away.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20131210/449ed365/attachment.html>


More information about the pulseaudio-bugs mailing list