From c8ec7d1987a20d06ab7415971cfcfa23827285ab Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 16 Aug 2022 01:43:34 +0100 Subject: getcifsacl, setcifsacl: add missing include for XATTR_SIZE_MAX Needed to build on musl. It only works on glibc because of transitive includes (which could break in future). Example failure: ``` getcifsacl.c: In function 'getcifsacl': getcifsacl.c:429:24: error: 'XATTR_SIZE_MAX' undeclared (first use in this function) 429 | if (bufsize >= XATTR_SIZE_MAX) { | ^~~~~~~~~~~~~~ ``` Bug: https://bugs.gentoo.org/842195 Signed-off-by: Sam James --- getcifsacl.c | 1 + setcifsacl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/getcifsacl.c b/getcifsacl.c index 1c01062..d69d40a 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include "cifsacl.h" #include "idmap_plugin.h" diff --git a/setcifsacl.c b/setcifsacl.c index 4c83476..03ad331 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include "cifsacl.h" -- cgit v1.2.3