[flashrom] [PATCH 3/3] udelay.c: usleep() not found in MinGW, used Sleep()

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Fri Apr 5 10:15:38 CEST 2013

Am 04.04.2013 02:20 schrieb Stefan Tauner:
> On Wed, 03 Apr 2013 01:21:11 +0200
> Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net> wrote:
>> I now see that the patch is correct. However, the code for non-Windows
>> was broken as well (too big values for udelay), so I extended your patch
>> a bit.
>> usleep() is not found in all versions of MinGW, use Sleep() on Windows.
>> Handle long sleeps on non-Windows correctly.
>> Signed-off-by: Maksim Kuleshov <mmcx at mail.ru>
>> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
> Looks good to me.
> Acked-by: Stefan Tauner <stefan.tauner at student.tuwien.ac.at>

Thanks, committed in r1667.

> Everybody is invited to work on the following when the patch has been
> merged:
> http://www.flashrom.org/Easy_projects#Replace_programmer_delay.28.29_with_internal_sleep.28.29_where_appropriate




More information about the flashrom mailing list