tpm2.0-tss: fix musl build issue

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2017-04-01 14:57:17 -07:00
parent aa9fa90288
commit d832cd0712
2 changed files with 31 additions and 1 deletions
@@ -0,0 +1,27 @@
Add missing header to avoid:
../TPM2.0-TSS/tcti/tcti_socket.c: In function 'SocketReceiveTpmResponse':
| ../TPM2.0-TSS/tcti/tcti_socket.c:286:5: error: unknown type name 'fd_set'
| fd_set readFds;
| ^~~~~~
| ../TPM2.0-TSS/tcti/tcti_socket.c:287:20: error: storage size of 'tv' isn't known
| struct timeval tv, *tvPtr;
| ^~
Upstream-Status: Submitted
tcti_socket: fix musl build issue do to missing header #393
Signed-off-by: Armin Kuster <akuster@mvista.com>
Index: TPM2.0-TSS/tcti/tcti_socket.c
===================================================================
--- TPM2.0-TSS.orig/tcti/tcti_socket.c
+++ TPM2.0-TSS/tcti/tcti_socket.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h> // Needed for _wtoi
+#include <sys/time.h>
#include "sapi/tpm20.h"
#include "sapi/marshal.h"
+4 -1
View File
@@ -7,9 +7,12 @@ SECTION = "tpm"
DEPENDS = "autoconf-archive pkgconfig"
SRCREV = "d1bd1fe175d233c7c5adbe1b9f3d256c41721001"
SRC_URI = " \
git://github.com/01org/TPM2.0-TSS.git;protocol=git;branch=master;name=TPM2.0-TSS;destsuffix=TPM2.0-TSS \
file://ax_pthread.m4"
file://ax_pthread.m4 \
file://musl_header_fix.patch \
"
inherit autotools pkgconfig systemd