From: VMware, Inc <> Date: Thu, 17 Jun 2010 22:32:24 +0000 (-0700) Subject: Fix usleep() wrapper on Windows. X-Git-Tag: 2010.06.16-268169~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81f9f4bfe27aa52262c8b09b08eb49f00dde3f40;p=thirdparty%2Fopen-vm-tools.git Fix usleep() wrapper on Windows. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/include/vm_basic_defs.h b/open-vm-tools/lib/include/vm_basic_defs.h index 3537c028c..046793246 100644 --- a/open-vm-tools/lib/include/vm_basic_defs.h +++ b/open-vm-tools/lib/include/vm_basic_defs.h @@ -433,7 +433,7 @@ sleep(unsigned int sec) static INLINE void usleep(unsigned long usec) { - Sleep(CEILING(usec/1000, 1000)); + Sleep(CEILING(usec, 1000)); } typedef int pid_t;