summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/RtsFlags.c8
-rw-r--r--rts/posix/OSThreads.c4
2 files changed, 4 insertions, 8 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 6a8c692bd9..b15a7890e3 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -17,14 +17,6 @@
#include <ctype.h>
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_WINDOWS_H
-#include <windows.h>
-#endif
-
#include <stdlib.h>
#include <string.h>
diff --git a/rts/posix/OSThreads.c b/rts/posix/OSThreads.c
index f15fc95c3a..1b85fd41f8 100644
--- a/rts/posix/OSThreads.c
+++ b/rts/posix/OSThreads.c
@@ -31,6 +31,10 @@
#include <sched.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
/*
* This (allegedly) OS threads independent layer was initially
* abstracted away from code that used Pthreads, so the functions