diff options
| author | Simon Marlow <marlowsd@gmail.com> | 2009-03-18 16:59:36 +0000 |
|---|---|---|
| committer | Simon Marlow <marlowsd@gmail.com> | 2009-03-18 16:59:36 +0000 |
| commit | ebb1d38825c6eafeb1e1ff9885b1557e7d065e49 (patch) | |
| tree | 4158b6d59874431b573e0e179d1c8ec6e1312347 | |
| parent | 31caec794c3978d55d79f715f21fb72948c9f300 (diff) | |
| download | haskell-ebb1d38825c6eafeb1e1ff9885b1557e7d065e49.tar.gz | |
wibble for getNumberOfProcessors
| -rw-r--r-- | rts/RtsFlags.c | 8 | ||||
| -rw-r--r-- | rts/posix/OSThreads.c | 4 |
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 |
