1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 06:23:18 +02:00

Usleep() is not found in all versions of MinGW, use Sleep() on Windows

Handle long sleeps on non-Windows correctly.

Corresponding to flashrom svn r1667.

Signed-off-by: Maksim Kuleshov <mmcx@mail.ru>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Maksim Kuleshov
2013-04-05 08:06:10 +00:00
committed by Carl-Daniel Hailfinger
parent 02437458a6
commit 73dc0db725
3 changed files with 16 additions and 5 deletions

View File

@ -250,6 +250,7 @@ extern const struct board_info laptops_known[];
/* udelay.c */
void myusec_delay(int usecs);
void myusec_calibrate_delay(void);
void internal_sleep(int usecs);
void internal_delay(int usecs);
#if CONFIG_INTERNAL == 1