summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-10-29 14:32:51 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-10-29 14:32:51 +0200
commit77e15c72869033fbef27fed0856a7f251c0b3a07 (patch)
tree7f7290cebc7794f439fa84bea5ddc88f6014182c
parent76d0e43140e83602ecca0073f2ee5515c3a9613b (diff)
downloadpatch-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--ChangeLog5
-rw-r--r--src/util.c4
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 <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
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 <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, ...)