Attention is currently required from: Anastasia Klimchuk.
Thomas Heijligen has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/75235 )
Change subject: tests/io_mock.h: add missing includes ......................................................................
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 --- M tests/io_mock.h 1 file changed, 18 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/35/75235/1
diff --git a/tests/io_mock.h b/tests/io_mock.h index 9798066..04b0ef5 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. */