mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-07 04:58:47 +00:00
tpm2.0-tss: fix musl build issue
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user