From: Guillermo J. Rozas Date: Thu, 28 Mar 1991 05:22:07 +0000 (+0000) Subject: Fix non-portable cpp hack in the definition of sighnd_stop. X-Git-Tag: 20090517-FFI~10810 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=7b24c2734dc2473b2022e179baca93d9fc2b49c5;p=mit-scheme.git Fix non-portable cpp hack in the definition of sighnd_stop. --- diff --git a/v7/src/microcode/uxsig.c b/v7/src/microcode/uxsig.c index 055e76cd7..ac22468b4 100644 --- a/v7/src/microcode/uxsig.c +++ b/v7/src/microcode/uxsig.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxsig.c,v 1.7 1991/03/01 00:56:19 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxsig.c,v 1.8 1991/03/28 05:22:07 jinx Exp $ Copyright (c) 1990-91 Massachusetts Institute of Technology @@ -398,9 +398,15 @@ DEFUN (stop_signal_default, (signo), int signo) void EXFUN ((*stop_signal_hook), (int signo)); +#ifdef HAVE_POSIX_SIGNALS +# define IF_POSIX_SIGNALS(code) do code while (0) +#else +# define IF_POSIX_SIGNALS(code) do {} while (0) +#endif + DEFUN_STD_HANDLER (sighnd_stop, + IF_POSIX_SIGNALS( { - #ifdef HAVE_POSIX_SIGNALS sigset_t old_mask; sigset_t jc_mask; @@ -424,8 +430,7 @@ DEFUN_STD_HANDLER (sighnd_stop, /* Restore the signal mask to its original state. */ UX_sigprocmask (SIG_SETMASK, (&old_mask), 0); - #endif /* HAVE_POSIX_SIGNALS */ - }) + })) void DEFUN_VOID (OS_restartable_exit)