--- gforth/engine/signals.c 2002/11/02 15:26:03 1.18 +++ 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)