All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] configure: Fix build with capabilities
@ 2012-07-15 13:54 Stefan Weil
  2012-07-16 15:35 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Weil @ 2012-07-15 13:54 UTC (permalink / raw)
  To: Blue Swirl; +Cc: Stefan Weil, qemu-devel

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>
---
 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index f745cc2..abde4c0 100755
--- a/configure
+++ b/configure
@@ -2082,7 +2082,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
-- 
1.7.10

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-16 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-15 13:54 [Qemu-devel] [PATCH] configure: Fix build with capabilities Stefan Weil
2012-07-16 15:35 ` Eric Blake
2012-07-16 15:40   ` Peter Maydell
2012-07-16 17:24     ` Alexander Graf
2012-07-16 18:28       ` Peter Maydell
2012-07-16 18:33         ` Alexander Graf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.