python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / tpm-tools / 0001-tpm_nvread-include-sys-stat.h-for-open-modes.patch
blob35fd7632bd1df6e369e86b3440fb2f19485c91dd
1 From 5fedfd32a226e3ac8a6022227ec2d8fc6df26901 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Thu, 24 Dec 2015 08:57:09 +0100
4 Subject: [PATCH] tpm_nvread: include <sys/stat.h> for open() modes
6 As the manual page of open(2) indicates, the <sys/stat.h> header
7 should be included. Indeed, it is this header that provides the mode_t
8 macros such as S_IRUSR and S_IWUSR.
10 While the build happens to work with glibc without this included
11 header, it fails with other C libraries such as uClibc, due to the
12 missing inclusion.
14 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
15 ---
16 src/tpm_mgmt/tpm_nvread.c | 1 +
17 1 file changed, 1 insertion(+)
19 diff --git a/src/tpm_mgmt/tpm_nvread.c b/src/tpm_mgmt/tpm_nvread.c
20 index 35fe17c..92f047c 100644
21 --- a/src/tpm_mgmt/tpm_nvread.c
22 +++ b/src/tpm_mgmt/tpm_nvread.c
23 @@ -23,6 +23,7 @@
24 #include <ctype.h>
25 #include <fcntl.h>
26 #include <unistd.h>
27 +#include <sys/stat.h>
29 #include "tpm_nvcommon.h"
30 #include "tpm_tspi.h"
31 --
32 2.6.4