[libvirt] [PATCH] Don't try to include xattr.h if not available

Guido Günther agx at sigxcpu.org
Mon Jan 14 19:25:08 UTC 2013


---
 tests/securityselinuxhelper.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/securityselinuxhelper.c b/tests/securityselinuxhelper.c
index abe4d7c..bd5ea87 100644
--- a/tests/securityselinuxhelper.c
+++ b/tests/securityselinuxhelper.c
@@ -24,7 +24,9 @@
 #include <string.h>
 #include <unistd.h>
 #include <errno.h>
-#include <attr/xattr.h>
+#ifdef WITH_ATTR
+# include <attr/xattr.h>
+#endif
 
 
 /*
-- 
1.7.10.4




More information about the libvir-list mailing list