diff options
author | Armin Kuster <akuster808@gmail.com> | 2023-04-26 09:56:38 -0400 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-05-06 07:54:09 -0400 |
commit | 617f0af2dc7867979f75dc537e3ebeb2f937efc8 (patch) | |
tree | 9d4c4fee9059b8c3f757cc4918f37ebe4555962b /meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch | |
parent | 250b67fc6f9b1ab8eff52ee8227564b4c9cc5772 (diff) | |
download | meta-security-617f0af2dc7867979f75dc537e3ebeb2f937efc8.tar.gz |
recipes-tpm: use this for common tpm recipes
a bit of re-org
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch')
-rw-r--r-- | meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch b/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch new file mode 100644 index 0000000..3d16431 --- /dev/null +++ b/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 8750a6c3f0b4d9e7e45b4079150d29eb44774e9c Mon Sep 17 00:00:00 2001 | ||
2 | From: Armin Kuster <akuster@mvista.com> | ||
3 | Date: Tue, 14 Mar 2017 22:59:36 -0700 | ||
4 | Subject: [PATCH 2/4] logging: Fix musl build issue with fcntl | ||
5 | |||
6 | error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp] | ||
7 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
11 | |||
12 | --- | ||
13 | src/swtpm/logging.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/swtpm/logging.c b/src/swtpm/logging.c | ||
17 | index f16cab6..7da8606 100644 | ||
18 | --- a/src/swtpm/logging.c | ||
19 | +++ b/src/swtpm/logging.c | ||
20 | @@ -45,7 +45,7 @@ | ||
21 | #include <errno.h> | ||
22 | #include <string.h> | ||
23 | #include <sys/types.h> | ||
24 | -#include <sys/fcntl.h> | ||
25 | +#include <fcntl.h> | ||
26 | #include <sys/stat.h> | ||
27 | #include <stdio.h> | ||
28 | #include <stdlib.h> | ||
29 | -- | ||
30 | 2.11.0 | ||
31 | |||