From 7538b74a11a81afb352b78a829badf4673afd4ae Mon Sep 17 00:00:00 2001 From: Thomas Heijligen Date: Mon, 15 May 2023 21:16:17 +0200 Subject: tests/io_mock.h: add missing includes When libusb is not around for the tests struct timeval and mode_t are not defined on mingw. Add both missing header to compile the tests under MSYS2 MINGW32/64 without libusb. Change-Id: Ic76653c8f3b5d7043ab6080d4e2e1748590ad070 Signed-off-by: Thomas Heijligen Reviewed-on: https://review.coreboot.org/c/flashrom/+/75235 Reviewed-by: Alexander Goncharov Reviewed-by: Stefan Reinauer Reviewed-by: Anastasia Klimchuk Tested-by: build bot (Jenkins) --- tests/io_mock.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/io_mock.h') diff --git a/tests/io_mock.h b/tests/io_mock.h index 979806683..04b0ef528 100644 --- a/tests/io_mock.h +++ b/tests/io_mock.h @@ -38,6 +38,10 @@ #include +/* Required for struct timeval and mode_t */ +#include +#include + #include "usb_unittests.h" /* Address value needs fit into uint8_t. */ -- cgit v1.2.3