From: Spencer Oliver Date: Mon, 23 May 2011 09:22:12 +0000 (+0100) Subject: Fix build issue under cygwin X-Git-Tag: v0.5.0-rc1~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d16b0ea6d46736633e4b765df963682ee684cf5f;p=openocd Fix build issue under cygwin cygwin does not define sleep, so use our internal win32 version. caused by commit 9d4aec6bda90ad39a140747ea270c6a09dd26440 Signed-off-by: Spencer Oliver --- diff --git a/src/target/dsp5680xx.c b/src/target/dsp5680xx.c index 12b323ed..b8e95e4e 100644 --- a/src/target/dsp5680xx.c +++ b/src/target/dsp5680xx.c @@ -162,7 +162,7 @@ static int dsp5680xx_assert_reset(struct target *target){ jtag_add_reset(1,0); target->state = TARGET_RESET; jtag_add_sleep(500); - sleep(1); + usleep(1000); return ERROR_OK; }