Skip to content

Commit

Permalink
tests/io_mock.h: add missing includes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/75235
Reviewed-by: Alexander Goncharov <[email protected]>
Reviewed-by: Stefan Reinauer <[email protected]>
Reviewed-by: Anastasia Klimchuk <[email protected]>
Tested-by: build bot (Jenkins) <[email protected]>
  • Loading branch information
heijligen authored and Anastasia Klimchuk committed Jul 13, 2023
1 parent f317a11 commit 7538b74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/io_mock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 7538b74

Please sign in to comment.