[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



---
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]