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