diff options
author | Sam James <sam@gentoo.org> | 2022-08-16 01:43:34 +0100 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2024-03-26 01:23:54 +0000 |
commit | c8ec7d1987a20d06ab7415971cfcfa23827285ab (patch) | |
tree | 9440fbb0ea66c49f810071634afc8ba3d13ac46d | |
parent | 25d6552c7d8b9fe2ca9dbf85c74c9330e4dd7770 (diff) | |
download | cifs-utils-c8ec7d1987a20d06ab7415971cfcfa23827285ab.tar.gz cifs-utils-c8ec7d1987a20d06ab7415971cfcfa23827285ab.tar.bz2 cifs-utils-c8ec7d1987a20d06ab7415971cfcfa23827285ab.zip |
getcifsacl, setcifsacl: add missing <linux/limits.h> 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 <sam@gentoo.org>
-rw-r--r-- | getcifsacl.c | 1 | ||||
-rw-r--r-- | setcifsacl.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/getcifsacl.c b/getcifsacl.c index 1c01062..d69d40a 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -34,6 +34,7 @@ #include <errno.h> #include <limits.h> #include <ctype.h> +#include <linux/limits.h> #include <sys/xattr.h> #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 <errno.h> #include <limits.h> #include <ctype.h> +#include <linux/limits.h> #include <sys/xattr.h> #include "cifsacl.h" |