summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 7fb6b05..305e695 100644
--- a/src/util.c
+++ b/src/util.c
@@ -196,6 +196,8 @@ copy_attr_free (struct error_context *ctx, char const *str)
{
}
+#ifdef HAVE_ATTR_COPY_ACTION
+
static int
copy_attr_check (const char *name, struct error_context *ctx)
{
@@ -203,6 +205,10 @@ copy_attr_check (const char *name, struct error_context *ctx)
return action == 0 || action == ATTR_ACTION_PERMISSIONS;
}
+#else
+#define copy_attr_check NULL
+#endif
+
static int
copy_attr (char const *src_path, char const *dst_path)
{