Skip to content

Commit 78250cd

Browse files
committed
Add missing include, causing regressions in wolfBoot's tpmtools
Fixes a regression introduced by the combination of: - 9dd6c1f ("Closing file descriptor on cleanup"), - 0aefc3b ("Add auto detection on linux")
1 parent 4ac37ce commit 78250cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/tpm2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
#include <wolftpm/tpm2_tis.h>
2929
#if defined(WOLFTPM_LINUX_DEV) || defined(WOLFTPM_LINUX_DEV_AUTODETECT)
3030
#include <wolftpm/tpm2_linux.h>
31+
#if !defined(__UBOOT__)
32+
#include <unistd.h>
33+
#endif
3134
#endif
3235
#ifdef WOLFTPM_SWTPM
3336
#include <wolftpm/tpm2_swtpm.h>

0 commit comments

Comments
 (0)