From: sof Date: Tue, 25 Mar 1997 21:24:14 +0000 (+0000) Subject: [project @ 1997-03-25 21:24:12 by sof] X-Git-Tag: Approximately_1000_patches_recorded~709 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1912120196ed0c0f5b59dfdea23925a32f186247;p=ghc-hetmet.git [project @ 1997-03-25 21:24:12 by sof] m68k-*-nexstep3 updates --- diff --git a/ghc/includes/StgMacros.lh b/ghc/includes/StgMacros.lh index 56d6523..059f44c 100644 --- a/ghc/includes/StgMacros.lh +++ b/ghc/includes/StgMacros.lh @@ -1659,7 +1659,8 @@ IF_RTS(void blockVtAlrmSignal(STG_NO_ARGS);) IF_RTS(void unblockVtAlrmSignal(STG_NO_ARGS);) IF_RTS(void AwaitEvent(I_ delta);) -#ifdef _POSIX_SOURCE +#if defined(_POSIX_SOURCE) && !defined(nextstep3_TARGET_OS) + /* For nextstep3_TARGET_OS comment see stgdefs.h. CaS */ extern I_ sig_install PROTO((I_, I_, sigset_t *)); #define stg_sig_ignore(s,m) SAFESTGCALL3(I_,(void *, I_, I_),sig_install,s,STG_SIG_IGN,(sigset_t *)m) #define stg_sig_default(s,m) SAFESTGCALL3(I_,(void *, I_, I_),sig_install,s,STG_SIG_DFL,(sigset_t *)m) diff --git a/ghc/includes/stgdefs.h b/ghc/includes/stgdefs.h index 964cfce..491f906 100644 --- a/ghc/includes/stgdefs.h +++ b/ghc/includes/stgdefs.h @@ -33,6 +33,18 @@ void _stgAssert PROTO((char *, unsigned int)); #define NON_POSIX_SOURCE #endif +/* If _NEXT_SOURCE is defined, certain header files make more + * constants visible to us. + * Perhaps it would have been wise, also to define NON_POSIX_SOURCE. + * Things seemed to work better without it however, so I have not + * done it. Nevertheless we do the signal stuff in a NON_POSIX way, + * see StgMacros.lh. + * CaS + */ +#ifdef nextstep3_TARGET_OS +#define _NEXT_SOURCE +#endif + #ifdef NON_POSIX_SOURCE #undef _POSIX_SOURCE #undef _POSIX_C_SOURCE