aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/compat/unistd.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/compat/unistd.h b/include/compat/unistd.h
index f521b94..4c4df10 100644
--- a/include/compat/unistd.h
+++ b/include/compat/unistd.h
@@ -37,7 +37,13 @@ ssize_t pwrite(int d, const void *buf, size_t nbytes, off_t offset);
37 37
38#define access _access 38#define access _access
39 39
40unsigned int sleep(unsigned int seconds); 40#ifdef _MSC_VER
41static inline unsigned int sleep(unsigned int seconds)
42{
43 Sleep(seconds * 1000);
44 return seconds;
45}
46#endif
41 47
42int ftruncate(int fd, off_t length); 48int ftruncate(int fd, off_t length);
43uid_t getuid(void); 49uid_t getuid(void);