blob: d736bc66f5538d528087ee2d30a171ab3867f03a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
tpm_ioctl: fix musl for missing ioctl
tpm_ioctl.c: In function 'ioctl_to_cmd':
tpm_ioctl.c:86:26: error: '_IOC_NRSHIFT' undeclared (first use in this function)
return ((ioctlnum >> _IOC_NRSHIFT) & _IOC_NRMASK) + 1;
Upstream-status:
Signed-off-by: Armin Kuster <akuster@mvista.com>
Index: git/src/swtpm_ioctl/tpm_ioctl.c
===================================================================
--- git.orig/src/swtpm_ioctl/tpm_ioctl.c
+++ git/src/swtpm_ioctl/tpm_ioctl.c
@@ -58,6 +58,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <asm/ioctl.h>
#include <getopt.h>
#include <sys/un.h>
#include <sys/types.h>
|