summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2023-05-15 21:16:17 +0200
committerAnastasia Klimchuk <aklm@chromium.org>2023-07-13 09:27:00 +0000
commit7538b74a11a81afb352b78a829badf4673afd4ae (patch)
treeecfa4137035428795ff9538f03bc9c3093bfb4a4
parentf317a11ef10c500fb9cb6e638b24626d1e309adf (diff)
downloadflashrom-7538b74a11a81afb352b78a829badf4673afd4ae.tar.gz
flashrom-7538b74a11a81afb352b78a829badf4673afd4ae.tar.bz2
flashrom-7538b74a11a81afb352b78a829badf4673afd4ae.zip
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 <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/75235 Reviewed-by: Alexander Goncharov <chat@joursoir.net> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--tests/io_mock.h4
1 files changed, 4 insertions, 0 deletions
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 <stdint.h>
+/* Required for struct timeval and mode_t */
+#include <sys/types.h>
+#include <sys/time.h>
+
#include "usb_unittests.h"
/* Address value needs fit into uint8_t. */