]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
ls: Fix compilation error on CentOS 6
authorBruno Haible <bruno@clisp.org>
Thu, 16 Jan 2025 19:31:08 +0000 (20:31 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 16 Jan 2025 20:11:14 +0000 (12:11 -0800)
* src/ls.c (XATTR_NAME_CAPS): Define fallback.

src/ls.c

index a64ed57ab2ac67d9ef4abb91e3d0aa2699bc938b..3215360216910125de73f265a2b4ea56ad3c2caa 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 
 #if HAVE_LINUX_XATTR_H
 # include <linux/xattr.h>
+# ifndef XATTR_NAME_CAPS
+#  define XATTR_NAME_CAPS "security.capability"
+# endif
 #endif
 
 #define PROGRAM_NAME (ls_mode == LS_LS ? "ls" \