aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1997-10-11 03:56:02 +0000
committerRichard M. Stallman <[email protected]>1997-10-11 03:56:02 +0000
commit62d9f4b03f51b27b7838a69cc127f431d8737903 (patch)
treeb70cc02dd94844747482c5658661730335f3e24b
parent10917a452a747097a77b82fc8cda98d5f8d938f2 (diff)
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__.
-rw-r--r--src/m/alpha.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/m/alpha.h b/src/m/alpha.h
index 4b6b26bd96..d62b9872de 100644
--- a/src/m/alpha.h
+++ b/src/m/alpha.h
@@ -153,7 +153,7 @@ NOTE-END
# endif
#endif
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__OpenBSD__)
#define ORDINARY_LINK
#endif
@@ -239,7 +239,7 @@ NOTE-END
#ifndef NOT_C_CODE
/* We need these because pointers are larger than the default ints. */
-#ifndef __NetBSD__
+#if !defined(__NetBSD__) && !defined(__OpenBSD__)
#include <alloca.h>
#else
#include <stdlib.h>
@@ -295,7 +295,7 @@ extern void r_alloc_free ();
{ \
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 @@ extern void r_alloc_free ();
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