diff options
| author | Richard M. Stallman | 1997-09-06 19:37:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-09-06 19:37:47 +0000 |
| commit | 61e630894af1c2adde2aa0a7018f00f2dcebafd4 (patch) | |
| tree | 196640138361666f7aa645beebb7d44b144f9045 | |
| parent | bd698e987e71743196eb0b317e8df3d39da228d9 (diff) | |
| download | emacs-61e630894af1c2adde2aa0a7018f00f2dcebafd4.tar.gz emacs-61e630894af1c2adde2aa0a7018f00f2dcebafd4.zip | |
Test __OpenBSD__ along with __NetBSD__.
| -rw-r--r-- | src/m/ns32000.h | 4 | ||||
| -rw-r--r-- | src/m/sparc.h | 6 | ||||
| -rw-r--r-- | src/unexalpha.c | 14 |
3 files changed, 13 insertions, 11 deletions
diff --git a/src/m/ns32000.h b/src/m/ns32000.h index 9fe59767089..345d4174a76 100644 --- a/src/m/ns32000.h +++ b/src/m/ns32000.h | |||
| @@ -88,7 +88,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 88 | in the file alloca.s should be used. */ | 88 | in the file alloca.s should be used. */ |
| 89 | 89 | ||
| 90 | /* #define C_ALLOCA */ | 90 | /* #define C_ALLOCA */ |
| 91 | #ifdef __NetBSD__ | 91 | #if defined (__NetBSD__) || defined (__OpenBSD__) |
| 92 | #define HAVE_ALLOCA | 92 | #define HAVE_ALLOCA |
| 93 | #endif | 93 | #endif |
| 94 | 94 | ||
| @@ -103,7 +103,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 103 | 103 | ||
| 104 | #define STACK_DIRECTION -1 | 104 | #define STACK_DIRECTION -1 |
| 105 | 105 | ||
| 106 | #ifndef __NetBSD__ | 106 | #if !defined (__NetBSD__) && !defined (__OpenBSD__) |
| 107 | #define EXEC_MAGIC 0410 | 107 | #define EXEC_MAGIC 0410 |
| 108 | 108 | ||
| 109 | #define PURESIZE 140000 | 109 | #define PURESIZE 140000 |
diff --git a/src/m/sparc.h b/src/m/sparc.h index 9b3ccf362a5..012826f0919 100644 --- a/src/m/sparc.h +++ b/src/m/sparc.h | |||
| @@ -103,8 +103,7 @@ NOTE-END */ | |||
| 103 | #define PURESIZE 130000 | 103 | #define PURESIZE 130000 |
| 104 | #endif | 104 | #endif |
| 105 | 105 | ||
| 106 | #ifndef __NetBSD__ | 106 | #if !defined (__NetBSD__) && !defined (__linux__) && !defined (__OpenBSD__) |
| 107 | #ifndef __linux__ | ||
| 108 | /* This really belongs in s/sun.h. */ | 107 | /* This really belongs in s/sun.h. */ |
| 109 | 108 | ||
| 110 | /* Say that the text segment of a.out includes the header; | 109 | /* Say that the text segment of a.out includes the header; |
| @@ -117,5 +116,4 @@ NOTE-END */ | |||
| 117 | 116 | ||
| 118 | #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr)) | 117 | #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr)) |
| 119 | 118 | ||
| 120 | #endif /* __linux__ */ | 119 | #endif /* not __NetBSD__ and not __linux__ and not __OpenBSD__ */ |
| 121 | #endif /* __NetBSD__ */ | ||
diff --git a/src/unexalpha.c b/src/unexalpha.c index 450c81539fb..987828664eb 100644 --- a/src/unexalpha.c +++ b/src/unexalpha.c | |||
| @@ -27,7 +27,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | #include <sys/mman.h> | 27 | #include <sys/mman.h> |
| 28 | #include <stdio.h> | 28 | #include <stdio.h> |
| 29 | #include <varargs.h> | 29 | #include <varargs.h> |
| 30 | #ifndef __NetBSD__ | 30 | #if !defined (__NetBSD__) && !defined (__OpenBSD__) |
| 31 | #include <filehdr.h> | 31 | #include <filehdr.h> |
| 32 | #include <aouthdr.h> | 32 | #include <aouthdr.h> |
| 33 | #include <scnhdr.h> | 33 | #include <scnhdr.h> |
| @@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 36 | # include <reloc.h> | 36 | # include <reloc.h> |
| 37 | # include <elf_abi.h> | 37 | # include <elf_abi.h> |
| 38 | #endif | 38 | #endif |
| 39 | #else /* __NetBSD__ */ | 39 | #else /* __NetBSD__ or __OpenBSD__ */ |
| 40 | /* | 40 | /* |
| 41 | * NetBSD/Alpha does not have 'normal' user-land ECOFF support because | 41 | * NetBSD/Alpha does not have 'normal' user-land ECOFF support because |
| 42 | * there's no desire to support ECOFF as the executable format in the | 42 | * there's no desire to support ECOFF as the executable format in the |
| @@ -51,7 +51,11 @@ Boston, MA 02111-1307, USA. */ | |||
| 51 | #define HDRR struct ecoff_symhdr | 51 | #define HDRR struct ecoff_symhdr |
| 52 | #define pHDRR HDRR * | 52 | #define pHDRR HDRR * |
| 53 | #define cbHDRR sizeof(HDRR) | 53 | #define cbHDRR sizeof(HDRR) |
| 54 | #ifdef __OpenBSD__ | ||
| 55 | #define ALPHAMAGIC ECOFF_MAGIC_NATIVE_ALPHA | ||
| 56 | #else | ||
| 54 | #define ALPHAMAGIC ECOFF_MAGIC_NETBSD_ALPHA | 57 | #define ALPHAMAGIC ECOFF_MAGIC_NETBSD_ALPHA |
| 58 | #endif | ||
| 55 | #define ZMAGIC ECOFF_ZMAGIC | 59 | #define ZMAGIC ECOFF_ZMAGIC |
| 56 | 60 | ||
| 57 | /* Misc. constants that NetBSD doesn't define at all. */ | 61 | /* Misc. constants that NetBSD doesn't define at all. */ |
| @@ -71,7 +75,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 71 | #define _RDATA ".rdata" | 75 | #define _RDATA ".rdata" |
| 72 | #define _SDATA ".sdata" | 76 | #define _SDATA ".sdata" |
| 73 | #define _SBSS ".sbss" | 77 | #define _SBSS ".sbss" |
| 74 | #endif /* __NetBSD__ */ | 78 | #endif /* __NetBSD__ || __OpenBSD__ */ |
| 75 | 79 | ||
| 76 | static void fatal_unexec (); | 80 | static void fatal_unexec (); |
| 77 | static void mark_x (); | 81 | static void mark_x (); |
| @@ -422,7 +426,7 @@ update_dynamic_symbols (old, new_name, new, aout) | |||
| 422 | int new; /* File descriptor for new executable */ | 426 | int new; /* File descriptor for new executable */ |
| 423 | struct aouthdr aout; /* a.out info from the file header */ | 427 | struct aouthdr aout; /* a.out info from the file header */ |
| 424 | { | 428 | { |
| 425 | #if !defined (__linux__) && !defined (__NetBSD__) | 429 | #if !defined (__linux__) && !defined (__NetBSD__) && !defined (__OpenBSD__) |
| 426 | 430 | ||
| 427 | typedef struct dynrel_info { | 431 | typedef struct dynrel_info { |
| 428 | char * addr; | 432 | char * addr; |
| @@ -492,7 +496,7 @@ update_dynamic_symbols (old, new_name, new, aout) | |||
| 492 | 496 | ||
| 493 | } | 497 | } |
| 494 | 498 | ||
| 495 | #endif /* not __linux__ and not __NetBSD__ */ | 499 | #endif /* not __linux__ and not __NetBSD__ and not __OpenBSD__ */ |
| 496 | } | 500 | } |
| 497 | 501 | ||
| 498 | 502 | ||