diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-07-18 15:10:20 +0100 |
---|---|---|
committer | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2012-07-31 22:01:13 +0530 |
commit | b7d28d25fd1344d4a260d5e9a250fa9bdb519ac6 (patch) | |
tree | 6bdf330c26582affc99cce437faa3d9b8c4780cf | |
parent | 5e3bc7144edd6e4fa2824944e5eb16c28197dd5a (diff) | |
download | hqemu-b7d28d25fd1344d4a260d5e9a250fa9bdb519ac6.zip hqemu-b7d28d25fd1344d4a260d5e9a250fa9bdb519ac6.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>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2084,7 +2084,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 |