diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-09-06 19:37:47 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-09-06 19:37:47 +0000 |
commit | 61e630894af1c2adde2aa0a7018f00f2dcebafd4 (patch) | |
tree | 196640138361666f7aa645beebb7d44b144f9045 /src/unexalpha.c | |
parent | bd698e987e71743196eb0b317e8df3d39da228d9 (diff) | |
download | emacs-61e630894af1c2adde2aa0a7018f00f2dcebafd4.tar.gz |
Test __OpenBSD__ along with __NetBSD__.
Diffstat (limited to 'src/unexalpha.c')
-rw-r--r-- | src/unexalpha.c | 14 |
1 files changed, 9 insertions, 5 deletions
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. */ #include <sys/mman.h> #include <stdio.h> #include <varargs.h> -#ifndef __NetBSD__ +#if !defined (__NetBSD__) && !defined (__OpenBSD__) #include <filehdr.h> #include <aouthdr.h> #include <scnhdr.h> @@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */ # include <reloc.h> # include <elf_abi.h> #endif -#else /* __NetBSD__ */ +#else /* __NetBSD__ or __OpenBSD__ */ /* * NetBSD/Alpha does not have 'normal' user-land ECOFF support because * there's no desire to support ECOFF as the executable format in the @@ -51,7 +51,11 @@ Boston, MA 02111-1307, USA. */ #define HDRR struct ecoff_symhdr #define pHDRR HDRR * #define cbHDRR sizeof(HDRR) +#ifdef __OpenBSD__ +#define ALPHAMAGIC ECOFF_MAGIC_NATIVE_ALPHA +#else #define ALPHAMAGIC ECOFF_MAGIC_NETBSD_ALPHA +#endif #define ZMAGIC ECOFF_ZMAGIC /* Misc. constants that NetBSD doesn't define at all. */ @@ -71,7 +75,7 @@ Boston, MA 02111-1307, USA. */ #define _RDATA ".rdata" #define _SDATA ".sdata" #define _SBSS ".sbss" -#endif /* __NetBSD__ */ +#endif /* __NetBSD__ || __OpenBSD__ */ static void fatal_unexec (); static void mark_x (); @@ -422,7 +426,7 @@ update_dynamic_symbols (old, new_name, new, aout) int new; /* File descriptor for new executable */ struct aouthdr aout; /* a.out info from the file header */ { -#if !defined (__linux__) && !defined (__NetBSD__) +#if !defined (__linux__) && !defined (__NetBSD__) && !defined (__OpenBSD__) typedef struct dynrel_info { char * addr; @@ -492,7 +496,7 @@ update_dynamic_symbols (old, new_name, new, aout) } -#endif /* not __linux__ and not __NetBSD__ */ +#endif /* not __linux__ and not __NetBSD__ and not __OpenBSD__ */ } |