summaryrefslogtreecommitdiff
path: root/ifuncs.h
diff options
context:
space:
mode:
Diffstat (limited to 'ifuncs.h')
-rw-r--r--ifuncs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ifuncs.h b/ifuncs.h
index e823e95d..c0e45bbe 100644
--- a/ifuncs.h
+++ b/ifuncs.h
@@ -89,13 +89,18 @@ init_stat_x(stat_x *sx_p)
static inline void
free_stat_x(stat_x *sx_p)
{
- extern int preserve_acls, preserve_xattrs;
#ifdef SUPPORT_ACLS
+ {
+ extern int preserve_acls;
if (preserve_acls)
free_acl(sx_p);
+ }
#endif
#ifdef SUPPORT_XATTRS
+ {
+ extern int preserve_xattrs;
if (preserve_xattrs)
free_xattr(sx_p);
+ }
#endif
}