summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 1ca92980..ace76b5d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -20,18 +20,17 @@ SOFTWARE.
#ifndef STC_UNISTD_H_
#define STC_UNISTD_H_
-#ifndef _WIN32
-
-#include_next <unistd.h>
-
-#else
+#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
-#include <windef.h>
-VOID WINAPI Sleep(_In_ DWORD dwMilliseconds);
+#include <io.h>
+#include <process.h>
+
#define sleep(s) Sleep((s)*1000)
-#include <io.h> /* _access() */
+#else
+
+#include_next <unistd.h>
#endif
#endif /* STC_UNISTD_H_ */