--- gforth/Attic/io.c 1994/02/11 16:30:46 1.1 +++ gforth/Attic/io.c 1994/06/17 12:35:05 1.3 @@ -3,10 +3,20 @@ The following is stolen from the readline library for bash */ +/* Use -DDOMAINOS for Apollo Domain-OS. + Use -D_POSIX_VERSION for POSIX systems. +*/ + +#ifdef DOMAINOS +#define _POSIX_VERSION +#endif + #include #include #include +#ifndef DOMAINOS #include +#endif #include #include @@ -24,7 +34,9 @@ #define NEW_TTY_DRIVER #define HAVE_BSD_SIGNALS +#ifndef DOMAINOS #define USE_XON_XOFF +#endif /* Some USG machines have BSD signal handling (sigblock, sigsetmask, etc.) */ #if defined (USG) && !defined (hpux) @@ -89,7 +101,7 @@ extern int errno; # endif /* USGr3 */ #endif /* USG && hpux */ -#if defined (_POSIX_VERSION) || defined (USGr3) +#if (defined (_POSIX_VERSION) || defined (USGr3)) && !defined(DOMAINOS) # include # define direct dirent # if defined (_POSIX_VERSION) @@ -705,7 +717,7 @@ install_signal_handlers (void) but I would like something more automatic - anton */ #define SIGS_TO_IGNORE SIGCHLD #define SIGS_TO_ABORT SIGINT, SIGILL, SIGFPE, SIGUSR1, SIGSEGV, SIGUSR2, \ - SIGALRM, SIGEMT, SIGBUS, SIGSYS + SIGALRM, SIGBUS #define SIGS_TO_QUIT SIGHUP, SIGQUIT, SIGABRT, SIGPIPE, \ SIGTERM