Skip to content

Commit ed8e634

Browse files
Anthony G. BasileHon Ching(Vicky) Lo
authored andcommitted
tpm_nvread.c: needs to include <sys/stat.h> for POSIX
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 <blueness@gentoo.org>
1 parent 1be477f commit ed8e634

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/tpm_mgmt/tpm_nvread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <ctype.h>
2424
#include <fcntl.h>
2525
#include <unistd.h>
26+
#include <sys/stat.h>
2627

2728
#include "tpm_nvcommon.h"
2829
#include "tpm_tspi.h"

0 commit comments

Comments
 (0)