configure: Fix build with capabilities
Since commit 417c9d72d4
all configure tests
normally run with -Werror. Some of these tests now fail because they
raised a compiler warning.
This patch fixes support for capabilities.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
5e3bc7144e
commit
b7d28d25fd
2
configure
vendored
2
configure
vendored
|
@ -2084,7 +2084,7 @@ if test "$cap" != "no" ; then
|
||||||
cat > $TMPC <<EOF
|
cat > $TMPC <<EOF
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/capability.h>
|
#include <sys/capability.h>
|
||||||
int main(void) { cap_t caps; caps = cap_init(); }
|
int main(void) { cap_t caps; caps = cap_init(); return caps != NULL; }
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "-lcap" ; then
|
if compile_prog "" "-lcap" ; then
|
||||||
cap=yes
|
cap=yes
|
||||||
|
|
Loading…
Reference in a new issue