aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilip Tricca <philip.b.tricca@intel.com>2017-12-29 11:43:31 -0800
committerPhilip Tricca <philip.b.tricca@intel.com>2018-01-31 07:10:00 -0800
commit111244cc30f2f8076e505d04a2ac9914627019ed (patch)
tree2b55abab4e15b201eefe52cc8d890f1c2498d5a7 /include
parent0099da737a95546684c1bff1ac7f7e192611ec06 (diff)
downloadtpm2-tss-111244cc30f2f8076e505d04a2ac9914627019ed.tar.gz
tss2_tcti.h: Define TCTI poll handle type for _WIN32 platforms.
On windows this should be a HANDLE. This requires that we include windows.h first. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/sapi/tss2_tcti.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sapi/tss2_tcti.h b/include/sapi/tss2_tcti.h
index 8fee1bca..c9ae94e5 100644
--- a/include/sapi/tss2_tcti.h
+++ b/include/sapi/tss2_tcti.h
@@ -57,6 +57,9 @@ extern "C" {
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__)
#include <poll.h>
typedef struct pollfd TSS2_TCTI_POLL_HANDLE;
+#elif defined(_WIN32)
+#include <windows.h>
+typedef HANDLE TSS2_TCTI_POLL_HANDLE;
#else
typedef void TSS2_TCTI_POLL_HANDLE;
#error Info: Platform not supported for TCTI_POLL_HANDLES