diff options
-rw-r--r-- | crypto/compat/posix_win.c | 7 | ||||
-rw-r--r-- | include/compat/unistd.h | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index f8a46ab..0dcc046 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c | |||
@@ -189,4 +189,11 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp) | |||
189 | tp->tv_usec = (long)(system_time.wMilliseconds * 1000); | 189 | tp->tv_usec = (long)(system_time.wMilliseconds * 1000); |
190 | return 0; | 190 | return 0; |
191 | } | 191 | } |
192 | |||
193 | unsigned int sleep(unsigned int seconds) | ||
194 | { | ||
195 | Sleep(seconds * 1000); | ||
196 | return seconds; | ||
197 | } | ||
198 | |||
192 | #endif | 199 | #endif |
diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 4676dc8..5dc2908 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h | |||
@@ -21,11 +21,7 @@ | |||
21 | 21 | ||
22 | #define access _access | 22 | #define access _access |
23 | 23 | ||
24 | static inline unsigned int sleep(unsigned int seconds) | 24 | unsigned int sleep(unsigned int seconds); |
25 | { | ||
26 | Sleep(seconds * 1000); | ||
27 | return seconds; | ||
28 | } | ||
29 | 25 | ||
30 | #endif | 26 | #endif |
31 | 27 | ||