--- gforth/engine/signals.c 2002/10/27 09:57:11 1.17 +++ gforth/engine/signals.c 2003/01/07 09:31:20 1.20 @@ -21,8 +21,8 @@ */ -#define _GNU_SOURCE - +#include "config.h" +#include "forth.h" #include #include #include @@ -31,11 +31,14 @@ #include #endif /* #include */ +#include #include -#include "config.h" -#include "forth.h" #include "io.h" +#ifndef HAVE_STACK_T +/* Darwin uses "struct sigaltstack" instead of "stack_t" */ +typedef struct sigaltstack stack_t; +#endif #define DEFAULTCOLS 80 #if defined(MSDOS) || defined (_WIN32) @@ -77,7 +80,7 @@ Sigfunc *bsd_signal(int signo, Sigfunc * act.sa_handler=func; sigemptyset(&act.sa_mask); - act.sa_flags=SA_NODEFER|SA_ONSTACK; + act.sa_flags=SA_NODEFER; /* SA_ONSTACK does not work for graceful_exit */ if (sigaction(signo,&act,&oact) < 0) return SIG_ERR; else