From 03e2a10d05924ade9d9bfef230d3dc3502e5c762 Mon Sep 17 00:00:00 2001 From: stolz Date: Thu, 9 Sep 2004 11:38:09 +0000 Subject: [PATCH 1/1] [project @ 2004-09-09 11:38:09 by stolz] Move forkProcess()-prototype to RtsExternal.h where package unix can see it (avoids an 'implicit declaration' warning there) --- ghc/includes/RtsExternal.h | 3 ++- ghc/rts/Schedule.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/includes/RtsExternal.h b/ghc/includes/RtsExternal.h index d8d810b..3e9762f 100644 --- a/ghc/includes/RtsExternal.h +++ b/ghc/includes/RtsExternal.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsExternal.h,v 1.3 2004/08/21 12:47:17 panne Exp $ + * $Id: RtsExternal.h,v 1.4 2004/09/09 11:38:09 stolz Exp $ * * (c) The GHC Team, 1998-2004 * @@ -34,6 +34,7 @@ extern I_ resetGenSymZh(void); 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); /* grimy low-level support functions defined in StgPrimFloat.c */ extern StgDouble __encodeDouble (I_ size, StgByteArray arr, I_ e); diff --git a/ghc/rts/Schedule.h b/ghc/rts/Schedule.h index d097a39..8924a62 100644 --- a/ghc/rts/Schedule.h +++ b/ghc/rts/Schedule.h @@ -158,7 +158,6 @@ extern nat RTS_VAR(rts_n_waiting_tasks); StgBool rtsSupportsBoundThreads(void); StgBool isThreadBound(StgTSO *tso); -StgInt forkProcess(HsStablePtr *entry); extern SchedulerStatus rts_mainLazyIO(HaskellObj p, /*out*/HaskellObj *ret); -- 1.7.10.4