Fix non-portable cpp hack in the definition of sighnd_stop.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 28 Mar 1991 05:22:07 +0000 (05:22 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 28 Mar 1991 05:22:07 +0000 (05:22 +0000)
v7/src/microcode/uxsig.c

index 055e76cd779b7c9976982d298f345fce6ce0a976..ac22468b4446fe7dac172302a22602b01aff2dfc 100644 (file)
@@ -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)