# HG changeset patch # User Richard M. Stallman # Date 876542162 0 # Node ID 6b1b51bc8b17f25803e04fb19b726b2354de7d7a # Parent 4e45c8db30cbec824e0fd20ab4f7dfb3645b2f2b Test __OpenBSD__ along with __NetBSD__. (PTY_OPEN): Call sigblock properly. (TEXT_END, COFF, DATA_END): Define them if __NetBSD__ just as if LINUX. (HAVE_TEXT_START): Define, if __NetBSD__ and __ELF__. diff -r 4e45c8db30cb -r 6b1b51bc8b17 src/m/alpha.h --- a/src/m/alpha.h Sat Oct 11 03:54:19 1997 +0000 +++ b/src/m/alpha.h Sat Oct 11 03:56:02 1997 +0000 @@ -153,7 +153,7 @@ # endif #endif -#ifdef __NetBSD__ +#if defined(__NetBSD__) || defined(__OpenBSD__) #define ORDINARY_LINK #endif @@ -239,7 +239,7 @@ #ifndef NOT_C_CODE /* We need these because pointers are larger than the default ints. */ -#ifndef __NetBSD__ +#if !defined(__NetBSD__) && !defined(__OpenBSD__) #include #else #include @@ -295,7 +295,7 @@ { \ int dummy; \ SIGMASKTYPE mask; \ - mask = sigblock (SIGCHLD); \ + mask = sigblock (sigmask (SIGCHLD)); \ if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ fd = -1; \ sigsetmask (mask); \ @@ -308,10 +308,14 @@ termio and struct termios are mutually incompatible. */ #define NO_TERMIO -#ifdef LINUX +#if defined (LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) # define TEXT_END ({ extern int _etext; &_etext; }) # ifndef __ELF__ # define COFF # define DATA_END ({ extern int _EDATA; &_EDATA; }) # endif /* notdef __ELF__ */ #endif + +#if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__) +#define HAVE_TEXT_START +#endif