diff options
Diffstat (limited to 'mac/src')
| -rw-r--r-- | mac/src/mac.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mac/src/mac.c b/mac/src/mac.c index 0aaad884f6d..d0c9d1a36c3 100644 --- a/mac/src/mac.c +++ b/mac/src/mac.c | |||
| @@ -969,9 +969,15 @@ gettimeofday (tp) | |||
| 969 | unsigned int | 969 | unsigned int |
| 970 | sleep (unsigned int seconds) | 970 | sleep (unsigned int seconds) |
| 971 | { | 971 | { |
| 972 | unsigned long time_up; | ||
| 972 | EventRecord e; | 973 | EventRecord e; |
| 973 | 974 | ||
| 974 | WaitNextEvent (0, &e, seconds * 60UL, NULL); /* Accept no event; just wait. by T.I.*/ | 975 | time_up = TickCount () + seconds * 60; |
| 976 | while (TickCount () < time_up) | ||
| 977 | { | ||
| 978 | /* Accept no event; just wait. by T.I. */ | ||
| 979 | WaitNextEvent (0, &e, 30, NULL); | ||
| 980 | } | ||
| 975 | 981 | ||
| 976 | return (0); | 982 | return (0); |
| 977 | } | 983 | } |