diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2009-07-18 14:41:23 +0000 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2009-07-18 14:41:23 +0000 |
commit | 52e4653d43a1a3e9eab7316ed735f1f1d83f3fdf (patch) | |
tree | d26303e720c54212819e6fbbfec3f62ec057b3e8 /winsup/mingw | |
parent | b5fb6b0dc3e12cdc746540a23eeb3e218aad9427 (diff) | |
download | newlib-52e4653d43a1a3e9eab7316ed735f1f1d83f3fdf.zip newlib-52e4653d43a1a3e9eab7316ed735f1f1d83f3fdf.tar.gz newlib-52e4653d43a1a3e9eab7316ed735f1f1d83f3fdf.tar.bz2 |
2009-07-18 Jeff Lu <jll544@yahoo.com>
* mingwex/usleep.c: round up to next ms
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 4 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/usleep.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index d5313bc..50c4263 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,7 @@ +2009-07-18 Jeff Lu <jll544@yahoo.com> + + * mingwex/usleep.c: round up to next ms + 2009-07-17 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> * mingwex/math/cephes_mconf.h mingwex/math/erfl.c mingwex/math/lgamma.c diff --git a/winsup/mingw/mingwex/usleep.c b/winsup/mingw/mingwex/usleep.c index b322a77..c059c06 100755 --- a/winsup/mingw/mingwex/usleep.c +++ b/winsup/mingw/mingwex/usleep.c @@ -34,7 +34,7 @@ int __cdecl usleep(useconds_t useconds) if(useconds >= 1000000) return EINVAL; - Sleep(useconds / 1000); + Sleep((useconds + 999) / 1000); return 0; } |