diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2010-10-29 14:32:51 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2010-10-29 14:32:51 +0200 |
commit | 77e15c72869033fbef27fed0856a7f251c0b3a07 (patch) | |
tree | 7f7290cebc7794f439fa84bea5ddc88f6014182c | |
parent | 76d0e43140e83602ecca0073f2ee5515c3a9613b (diff) | |
download | patch-77e15c72869033fbef27fed0856a7f251c0b3a07.tar.gz |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/util.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2010-10-29 Andreas Gruenbacher <agruen@suse.de> + + * 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 <agruen@suse.de> * src/util.c (set_file_attributes): Always expect the mode argument to @@ -42,7 +42,7 @@ #include <full-write.h> #include <tempname.h> -#ifdef USE_XATTR +#if USE_XATTR # include <attr/error_context.h> # include <attr/libattr.h> # include <stdarg.h> @@ -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, ...) |