[Libguestfs] [PATCH 05/16] fuse: test-fuse: enclose acl vars within HAVE_ACL

Pino Toscano ptoscano at redhat.com
Thu Oct 23 18:18:33 UTC 2014


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




More information about the Libguestfs mailing list