From ee36104279f55c26a0ec71abbe8cccbbd0bc3966 Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Mon, 19 Feb 2018 01:41:15 +0100 Subject: Support building with empty -DNO_XATTR= (equivalent to -DNO_XATTR=0). --- src/metaentry.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/metaentry.c') diff --git a/src/metaentry.c b/src/metaentry.c index 6c5bc84..da28723 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -26,7 +26,7 @@ #include #include -#if !defined(NO_XATTR) || !NO_XATTR +#if !defined(NO_XATTR) || !(NO_XATTR+0) # include #endif /* !NO_XATTR */ @@ -52,7 +52,7 @@ # define PATH_MAX 4096 #endif -#if !defined(NO_XATTR) || !NO_XATTR +#if !defined(NO_XATTR) || !(NO_XATTR+0) /* Free's a metaentry and all its parameters */ static void mentry_free(struct metaentry *m) @@ -195,14 +195,14 @@ mentries_print(const struct metahash *mhash) struct metaentry * mentry_create(const char *path) { -#if !defined(NO_XATTR) || !NO_XATTR +#if !defined(NO_XATTR) || !(NO_XATTR+0) ssize_t lsize, vsize; char *list, *attr; #endif /* !NO_XATTR */ struct stat sbuf; struct passwd *pbuf; struct group *gbuf; -#if !defined(NO_XATTR) || !NO_XATTR +#if !defined(NO_XATTR) || !(NO_XATTR+0) int i; #endif /* !NO_XATTR */ struct metaentry *mentry; @@ -240,7 +240,7 @@ mentry_create(const char *path) if (S_ISLNK(mentry->mode)) return mentry; -#if !defined(NO_XATTR) || !NO_XATTR +#if !defined(NO_XATTR) || !(NO_XATTR+0) lsize = listxattr(path, NULL, 0); if (lsize < 0) { /* Perhaps the FS doesn't support xattrs? */ -- cgit v1.2.1