Richard Marian Thomaiyar | 14fddef | 2018-07-13 23:55:56 +0530 | [diff] [blame] | 1 | tpm_ioctl: fix musl for missing ioctl |
| 2 | |
| 3 | tpm_ioctl.c: In function 'ioctl_to_cmd': |
| 4 | tpm_ioctl.c:86:26: error: '_IOC_NRSHIFT' undeclared (first use in this function) |
| 5 | return ((ioctlnum >> _IOC_NRSHIFT) & _IOC_NRMASK) + 1; |
| 6 | |
| 7 | |
| 8 | Upstream-status: |
| 9 | Signed-off-by: Armin Kuster <akuster@mvista.com> |
| 10 | |
| 11 | Index: 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> |