summaryrefslogtreecommitdiffstats
path: root/recipes-tpm/swtpm/files/fix_fcntl_h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-tpm/swtpm/files/fix_fcntl_h.patch')
-rw-r--r--recipes-tpm/swtpm/files/fix_fcntl_h.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes-tpm/swtpm/files/fix_fcntl_h.patch b/recipes-tpm/swtpm/files/fix_fcntl_h.patch
new file mode 100644
index 0000000..e844045
--- /dev/null
+++ b/recipes-tpm/swtpm/files/fix_fcntl_h.patch
@@ -0,0 +1,21 @@
1logging: Fix musl build issue with fcntl
2
3 error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
4 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.
5
6Upstream-Status: Pending
7Signed-off-by: Armin Kuster <akuster@mvista.com>
8
9Index: git/src/swtpm/logging.c
10===================================================================
11--- git.orig/src/swtpm/logging.c
12+++ git/src/swtpm/logging.c
13@@ -43,7 +43,7 @@
14 #include <errno.h>
15 #include <string.h>
16 #include <sys/types.h>
17-#include <sys/fcntl.h>
18+#include <fcntl.h>
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <stdarg.h>