Message ID | 20220624045432.991655-2-sam@gentoo.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] getcifsacl, setcifsacl: add missing <linux/limits.h> include for XATTR_SIZE_MAX | expand |
diff --git a/getcifsacl.c b/getcifsacl.c index d69d40a..123d11e 100644 --- a/getcifsacl.c +++ b/getcifsacl.c @@ -23,6 +23,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ +#include <endian.h> #include <string.h> #include <getopt.h> #include <stdint.h> diff --git a/setcifsacl.c b/setcifsacl.c index e925d59..84cd0b3 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -38,6 +38,7 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ +#include <endian.h> #include <string.h> #include <getopt.h> #include <stdint.h>
Needed to fix build on musl libc. It only works by chance on glibc because of transitive includes (which could break at any time). Example failure: ``` getcifsacl.c: In function 'print_ace': getcifsacl.c:284:16: warning: implicit declaration of function 'le16toh' [-Wimplicit-function-declaration] 284 | size = le16toh(pace->size); | ^~~~~~~ ``` Bug: https://bugs.gentoo.org/842195 Signed-off-by: Sam James <sam@gentoo.org> --- getcifsacl.c | 1 + setcifsacl.c | 1 + 2 files changed, 2 insertions(+)