From 77e15c72869033fbef27fed0856a7f251c0b3a07 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Fri, 29 Oct 2010 14:32:51 +0200 Subject: Fix the USE_XATTR checks * src/util.c: USE_XATTR is defined to 0 or 1, so we need to use #if instead of #ifdef. --- ChangeLog | 5 +++++ src/util.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2519200..0f9dd53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-10-29 Andreas Gruenbacher + + * src/util.c: USE_XATTR is defined to 0 or 1, so we need to use #if + instead of #ifdef. + 2010-10-27 Andreas Gruenbacher * src/util.c (set_file_attributes): Always expect the mode argument to diff --git a/src/util.c b/src/util.c index 2f9c2f6..dc8d122 100644 --- a/src/util.c +++ b/src/util.c @@ -42,7 +42,7 @@ #include #include -#ifdef USE_XATTR +#if USE_XATTR # include # include # include @@ -130,7 +130,7 @@ contains_slash (const char *s) return false; } -#ifdef USE_XATTR +#if USE_XATTR static void copy_attr_error (struct error_context *ctx, char const *fmt, ...) -- cgit v1.2.1