summaryrefslogtreecommitdiff
path: root/rts/posix/OSThreads.c
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-03-18 16:59:36 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-03-18 16:59:36 +0000
commitebb1d38825c6eafeb1e1ff9885b1557e7d065e49 (patch)
tree4158b6d59874431b573e0e179d1c8ec6e1312347 /rts/posix/OSThreads.c
parent31caec794c3978d55d79f715f21fb72948c9f300 (diff)
downloadhaskell-ebb1d38825c6eafeb1e1ff9885b1557e7d065e49.tar.gz
wibble for getNumberOfProcessors
Diffstat (limited to 'rts/posix/OSThreads.c')
-rw-r--r--rts/posix/OSThreads.c4
1 files changed, 4 insertions, 0 deletions
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