summaryrefslogtreecommitdiffstats
path: root/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch
diff options
context:
space:
mode:
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.patch24
1 files changed, 17 insertions, 7 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
index e844045..3d16431 100644
--- a/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch
+++ b/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch
@@ -1,4 +1,7 @@
1logging: Fix musl build issue with fcntl 1From 8750a6c3f0b4d9e7e45b4079150d29eb44774e9c Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster@mvista.com>
3Date: Tue, 14 Mar 2017 22:59:36 -0700
4Subject: [PATCH 2/4] logging: Fix musl build issue with fcntl
2 5
3 error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp] 6 error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
4 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl. 7 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.
@@ -6,16 +9,23 @@ logging: Fix musl build issue with fcntl
6Upstream-Status: Pending 9Upstream-Status: Pending
7Signed-off-by: Armin Kuster <akuster@mvista.com> 10Signed-off-by: Armin Kuster <akuster@mvista.com>
8 11
9Index: git/src/swtpm/logging.c 12---
10=================================================================== 13 src/swtpm/logging.c | 2 +-
11--- git.orig/src/swtpm/logging.c 14 1 file changed, 1 insertion(+), 1 deletion(-)
12+++ git/src/swtpm/logging.c 15
13@@ -43,7 +43,7 @@ 16diff --git a/src/swtpm/logging.c b/src/swtpm/logging.c
17index f16cab6..7da8606 100644
18--- a/src/swtpm/logging.c
19+++ b/src/swtpm/logging.c
20@@ -45,7 +45,7 @@
14 #include <errno.h> 21 #include <errno.h>
15 #include <string.h> 22 #include <string.h>
16 #include <sys/types.h> 23 #include <sys/types.h>
17-#include <sys/fcntl.h> 24-#include <sys/fcntl.h>
18+#include <fcntl.h> 25+#include <fcntl.h>
26 #include <sys/stat.h>
19 #include <stdio.h> 27 #include <stdio.h>
20 #include <stdlib.h> 28 #include <stdlib.h>
21 #include <stdarg.h> 29--
302.11.0
31