summaryrefslogtreecommitdiffstats
path: root/meta-tpm/recipes-tpm/swtpm/files/fix_fcntl_h.patch
blob: e8440454692691d0bb33c6341c15dcb8962f2d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
logging: Fix musl build issue with fcntl

 error: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Werror=cpp]
 #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.

Upstream-Status: Pending
Signed-off-by: Armin Kuster <akuster@mvista.com>

Index: git/src/swtpm/logging.c
===================================================================
--- git.orig/src/swtpm/logging.c
+++ git/src/swtpm/logging.c
@@ -43,7 +43,7 @@
 #include <errno.h>
 #include <string.h>
 #include <sys/types.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>