X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=includes%2FRtsExternal.h;h=6e23a9ce82d100a95deb5897cb307fb7488624f9;hp=3a3626b56b29e67925609f6cdf7e05a6e30942f3;hb=85174045bbcc05adb28447d423794d1f087da59e;hpb=dd605e295e2a7ee92dc0511d81ebef4984eacf1e diff --git a/includes/RtsExternal.h b/includes/RtsExternal.h index 3a3626b..6e23a9c 100644 --- a/includes/RtsExternal.h +++ b/includes/RtsExternal.h @@ -15,6 +15,10 @@ /* The standard FFI interface */ #include "HsFFI.h" +#ifdef HAVE_SYS_TYPES_H +#include +#endif + /* ----------------------------------------------------------------------------- Functions exported by the RTS for use in Stg code -------------------------------------------------------------------------- */ @@ -36,7 +40,7 @@ extern int genericRaise(int sig); extern int cmp_thread(StgPtr tso1, StgPtr tso2); extern int rts_getThreadId(StgPtr tso); extern int forkOS_createThread ( HsStablePtr entry ); -extern StgInt forkProcess(HsStablePtr *entry); +extern pid_t forkProcess(HsStablePtr *entry); extern HsBool rtsSupportsBoundThreads(void); extern StgInt newSpark (StgRegTable *reg, StgClosure *p);