[libvirt] [PATCH] Add strings.h include to capabilities.h for ffs() function prototype

Daniel P. Berrange berrange at redhat.com
Tue Nov 22 09:46:56 UTC 2011


From: "Daniel P. Berrange" <berrange at redhat.com>

Pushed the following to fix the build on mingw32

On Mingw32 the ffs() function was not declared due to missing header
include

* src/conf/capabilities.c: The ffs() function lives in strings.h
---
 src/conf/capabilities.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c
index 87b60b0..ac132f9 100644
--- a/src/conf/capabilities.c
+++ b/src/conf/capabilities.c
@@ -23,6 +23,8 @@
 
 #include <config.h>
 
+#include <strings.h>
+
 #include "capabilities.h"
 #include "buf.h"
 #include "memory.h"
-- 
1.7.6.4




More information about the libvir-list mailing list