diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-07-30 15:09:11 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2012-07-30 15:09:41 +0100 |
commit | e2498fb50043262fec4ed846b9f43396e0dc9637 (patch) | |
tree | 31dd5eed0acea518f1db22d70662a4d1fde3a753 | |
parent | 22cd18a7949c87c805cec5f098f43bd2a2d39703 (diff) | |
download | qemu-arm-e2498fb50043262fec4ed846b9f43396e0dc9637.tar.gz |
configure: Fix build with capabilities
Since commit 417c9d72d48275d19c60861896efd4962d21aca2 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>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2085,7 +2085,7 @@ if test "$cap" != "no" ; then cat > $TMPC <<EOF #include <stdio.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 if compile_prog "" "-lcap" ; then cap=yes |