---- a/mkfs.jffs2.c
-+++ b/mkfs.jffs2.c
-@@ -1100,6 +1100,7 @@ static struct {
- { 0, NULL, 0 }
- };
-
-+#ifndef NO_ACL_SUPPORT
- static void formalize_posix_acl(void *xvalue, int *value_len)
- {
- struct posix_acl_xattr_header *pacl_header;
-@@ -1151,6 +1152,7 @@ static void formalize_posix_acl(void *xv
- memcpy(xvalue, buffer, offset);
- *value_len = offset;
- }
-+#endif
-
- static xattr_entry_t *create_xattr_entry(int xprefix, char *xname, char *xvalue, int value_len)
- {
-@@ -1205,9 +1207,11 @@ static xattr_entry_t *find_xattr_entry(i
- if (!xentry_hash)
- xentry_hash = xcalloc(1, sizeof(xe) * XATTRENTRY_HASHSIZE);
-
-+#ifndef NO_ACL_SUPPORT
- if (xprefix == JFFS2_XPREFIX_ACL_ACCESS
- || xprefix == JFFS2_XPREFIX_ACL_DEFAULT)
- formalize_posix_acl(xvalue, &value_len);
-+#endif
-
- name_len = strlen(xname);
- index = (crc32(0, xname, name_len) ^ crc32(0, xvalue, value_len)) % XATTRENTRY_HASHSIZE;