diff options
author | Sam James <sam@gentoo.org> | 2022-08-16 01:43:35 +0100 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2024-03-26 01:24:09 +0000 |
commit | 3870f5b7a68442121859badad619b5d64672e19c (patch) | |
tree | 39efffb4fdabcb3d545a0b07944fd651d604ead0 | |
parent | c8ec7d1987a20d06ab7415971cfcfa23827285ab (diff) | |
download | cifs-utils-3870f5b7a68442121859badad619b5d64672e19c.tar.gz cifs-utils-3870f5b7a68442121859badad619b5d64672e19c.tar.bz2 cifs-utils-3870f5b7a68442121859badad619b5d64672e19c.zip |
getcifsacl, setcifsacl: add missing <endian.h> include for le32toh
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>
-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 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 03ad331..b199118 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> |