tpm2.0-tss: fix musl build error

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster
2017-01-27 21:07:51 -08:00
parent 7fd5f25475
commit 543f86aded
2 changed files with 33 additions and 1 deletions
@@ -0,0 +1,31 @@
This fixes musl build issue do to missing FD_* defines.
Add sys/select.h
Upstream-Status: Pending
Signed-off-by: Armin Kuster <akuster@mvista.com>
Index: TPM2.0-TSS/tcti/tcti_socket.cpp
===================================================================
--- TPM2.0-TSS.orig/tcti/tcti_socket.cpp
+++ TPM2.0-TSS/tcti/tcti_socket.cpp
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h> // Needed for _wtoi
+#include "sys/select.h"
#include <sapi/tpm20.h>
#include <tcti/tcti_socket.h>
#include "sysapi_util.h"
Index: TPM2.0-TSS/resourcemgr/resourcemgr.c
===================================================================
--- TPM2.0-TSS.orig/resourcemgr/resourcemgr.c
+++ TPM2.0-TSS/resourcemgr/resourcemgr.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h> // Needed for _wtoi
+#include "sys/select.h"
#include <sapi/tpm20.h>
#include <tcti/tcti_device.h>
#include <tcti/tcti_socket.h>
+2 -1
View File
@@ -7,7 +7,8 @@ SECTION = "tpm"
SRCREV = "8e25d0cbb287d30c93b2b77e99bc761dc67e31a9"
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://fix_musl_select_include.patch "
inherit autotools pkgconfig