summaryrefslogtreecommitdiff
path: root/lib/acl-internal.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-01-13 11:10:28 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-01-13 11:11:09 -0800
commitcff4b380b8a48071b341af28d93501f5d18b46cb (patch)
tree38610a8d57ac7a1998f5215c984852d6e025f26f /lib/acl-internal.h
parent0433724bb2a1eb7db42181746b79e15ad7a79930 (diff)
downloadgnulib-cff4b380b8a48071b341af28d93501f5d18b46cb.tar.gz
acl-permissions: port to USE_ACL==0 platforms
I ran into this problem when building bleeding-edge GNU Emacs with gcc -fsanitize=address on Fedora 23. On this platform the ACL library does not pass the 'configure' test and Emacs then does not build due in part to what appear to be typos in the ACL part of Gnulib. * lib/acl-internal.c (free_permission_context): * lib/acl-internal.h (struct permission_context): Test whether USE_ACL is nonzero, not whether it is defined.
Diffstat (limited to 'lib/acl-internal.h')
-rw-r--r--lib/acl-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acl-internal.h b/lib/acl-internal.h
index 526e9f0778..636273e0fb 100644
--- a/lib/acl-internal.h
+++ b/lib/acl-internal.h
@@ -255,7 +255,7 @@ extern int acl_nontrivial (int count, struct acl *entries);
struct permission_context {
mode_t mode;
-#ifdef USE_ACL
+#if USE_ACL
# if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX, Tru64 */
acl_t acl;
# if !HAVE_ACL_TYPE_EXTENDED