From 62ffe98744aba140e5959635abb46c32a47887d2 Mon Sep 17 00:00:00 2001
From: Maksim Kuleshov mmcx@mail.ru Date: Mon, 1 Apr 2013 19:03:43 +0400 Subject: [PATCH 3/3] udelay.c: usleep() not found in MinGW, used Sleep()
Signed-off-by: Maksim Kuleshov mmcx@mail.ru --- udelay.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/udelay.c b/udelay.c index 9f5e562..e589afb 100644 --- a/udelay.c +++ b/udelay.c @@ -175,7 +175,11 @@ void internal_delay(int usecs) * be so precise. */ if (usecs > 1000000) { +#ifdef _WIN32 + Sleep((usecs + 999) / 1000); +#else usleep(usecs); +#endif } else { myusec_delay(usecs); }