From b25c2620f3f53f6f2a42428c83fefdf0beab5d62 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Tue, 25 Mar 1997 21:20:38 +0000
Subject: [PATCH] [project @ 1997-03-25 21:20:38 by sof] m68k-*-nextstep3
 updates

---
 ghc/runtime/main/Signals.lc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ghc/runtime/main/Signals.lc b/ghc/runtime/main/Signals.lc
index 24220d495c6b..1b1af4670cef 100644
--- a/ghc/runtime/main/Signals.lc
+++ b/ghc/runtime/main/Signals.lc
@@ -21,6 +21,11 @@ much pain.
 \begin{code}
 #include "config.h"
 
+/* Treat nexttep3 and sunos4 alike. CaS */
+#if defined(nextstep3_TARGET_OS)
+# define NON_POSIX_SOURCE
+#endif
+ 
 #if defined(sunos4_TARGET_OS)
     /* The sigaction in SunOS 4.1.X does not grok SA_SIGINFO */
 # define NON_POSIX_SOURCE
@@ -45,6 +50,13 @@ much pain.
 
 #if defined(HAVE_SYS_TYPES_H)
 # include <sys/types.h>
+#endif
+
+	/* This is useful with the particular set of header files on my NeXT.
+	 * CaS
+	 */
+#if defined(HAVE_SYS_SIGNAL_H)
+# include <sys/signal.h>
 #endif
 
 #if defined(HAVE_SIGNAL_H)
@@ -97,6 +109,7 @@ fault.
 
 \begin{code}
 #if STACK_CHECK_BY_PAGE_FAULT
+	/* NB: At the moment, this is always false on nextstep3. CaS. */
 
 extern P_ stks_space;	    /* Where the stacks live, from SMstacks.lc */
 \end{code}
-- 
GitLab