Enclose the acl-related variables within a #ifdef HAVE_ACL block, so
when building without acl support and -Werror it can build.
---
 fuse/test-fuse.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fuse/test-fuse.c b/fuse/test-fuse.c
index b675a4c..a341994 100644
--- a/fuse/test-fuse.c
+++ b/fuse/test-fuse.c
@@ -251,8 +251,10 @@ test_fuse (void)
   int fd;
   struct timeval tv[2];
   struct timespec ts[2];
+#ifdef HAVE_ACL
   acl_t acl;
   char *acl_text;
+#endif
 
   STAGE ("checking initial files exist");
 
-- 
1.9.3

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to