summaryrefslogtreecommitdiff
path: root/mysys/my_sleep.c
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-01-05 16:35:43 +0100
committerunknown <kent@mysql.com>2005-01-05 16:35:43 +0100
commit6f2f0d5cf3a7cb9a638bc753a3f3ec1b518bc4ed (patch)
tree3fb5cf219083125b3ee14d9add7c81c8a40565e6 /mysys/my_sleep.c
parentc99b4964ca7da035bf2895812ef02bcfbdefa67a (diff)
downloadmariadb-git-6f2f0d5cf3a7cb9a638bc753a3f3ec1b518bc4ed.tar.gz
my_sleep.c:
On Windows my_sleep() always gave a zero microsecond sleep mysys/my_sleep.c: On Windows my_sleep() always gave a zero microsecond sleep
Diffstat (limited to 'mysys/my_sleep.c')
-rw-r--r--mysys/my_sleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_sleep.c b/mysys/my_sleep.c
index 3de2d2abd13..31eaf7eeb96 100644
--- a/mysys/my_sleep.c
+++ b/mysys/my_sleep.c
@@ -23,6 +23,8 @@ void my_sleep(ulong m_seconds)
{
#ifdef __NETWARE__
delay(m_seconds/1000+1);
+#elif defined(__WIN__)
+ Sleep(m_seconds/1000+1); /* Sleep() has millisecond arg */
#elif defined(OS2)
DosSleep(m_seconds/1000+1);
#elif defined(HAVE_SELECT)