diff options
author | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:52:29 -0600 |
---|---|---|
committer | Brent Cook <bcook@rapid7.com> | 2015-07-21 12:52:29 -0600 |
commit | 9d5eb631e3db34ae7e62fcbded203ca7755fef2d (patch) | |
tree | 7b9bbad21fb1190a233c547bb09d264cd0f8e82c /crypto | |
parent | 63161e85dc091cfdabfbeec975cdb4b1056701c9 (diff) | |
download | portable-9d5eb631e3db34ae7e62fcbded203ca7755fef2d.tar.gz portable-9d5eb631e3db34ae7e62fcbded203ca7755fef2d.tar.bz2 portable-9d5eb631e3db34ae7e62fcbded203ca7755fef2d.zip |
move sleep shim to posix_win.c
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/compat/posix_win.c | 7 |
1 files changed, 7 insertions, 0 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 |