From: "Anthony G. Basile" <[email protected]> src/tpm_mgmt/tpm_nvread.c references S_IRUSR and friends but does not include <sys/stat.h> which defines them according to POSIX. It builds on glibc systems because of the way the headers include one another, but fails on uClibc and musl.
See: [1] https://bugs.gentoo.org/show_bug.cgi?id=551440 [2] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html Signed-off-by: Anthony G. Basile <[email protected]> --- src/tpm_mgmt/tpm_nvread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tpm_mgmt/tpm_nvread.c b/src/tpm_mgmt/tpm_nvread.c index 35fe17c..92f047c 100644 --- a/src/tpm_mgmt/tpm_nvread.c +++ b/src/tpm_mgmt/tpm_nvread.c @@ -23,6 +23,7 @@ #include <ctype.h> #include <fcntl.h> #include <unistd.h> +#include <sys/stat.h> #include "tpm_nvcommon.h" #include "tpm_tspi.h" -- 2.3.6 ------------------------------------------------------------------------------ _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
