changeset 19776:6910bd6de0d9

Test __OpenBSD__ along with __NetBSD__. [__OpenBSD__]: Include sys/exec_elf.h.
author Richard M. Stallman <rms@gnu.org>
date Sat, 06 Sep 1997 19:40:22 +0000
parents 70b808126773
children aa8c979991fb
files src/unexelf.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexelf.c	Sat Sep 06 19:37:47 1997 +0000
+++ b/src/unexelf.c	Sat Sep 06 19:40:22 1997 +0000
@@ -420,7 +420,7 @@
 #include <errno.h>
 #include <unistd.h>
 #include <fcntl.h>
-#ifndef __NetBSD__
+#if !defined (__NetBSD__) && !defined (__OpenBSD__)
 #include <elf.h>
 #endif
 #include <sys/mman.h>
@@ -429,7 +429,7 @@
 #include <sym.h>
 #endif /* __sony_news && _SYSTYPE_SYSV */
 
-#if defined (__alpha__) && !defined (__NetBSD__)
+#if defined (__alpha__) && !defined (__NetBSD__) && !defined (__OpenBSD__)
 #include <sym.h>	/* get COFF debugging symbol table declaration */
 #endif
 
@@ -473,6 +473,10 @@
 # endif
 #endif /* __NetBSD__ */
 
+#ifdef __OpenBSD__
+# include <sys/exec_elf.h>
+#endif
+
 #if __GNU_LIBRARY__ - 0 >= 6
 # include <link.h>	/* get ElfW etc */
 #endif
@@ -682,7 +686,7 @@
   old_bss_addr = OLD_SECTION_H (old_bss_index).sh_addr;
   old_bss_size = OLD_SECTION_H (old_bss_index).sh_size;
 #endif /* not (__sony_news && _SYSTYPE_SYSV) */	    
-#if defined(emacs) || !defined(DEBUG)
+#if defined (emacs) || !defined (DEBUG)
   new_bss_addr = (ElfW(Addr)) sbrk (0);
 #else
   new_bss_addr = old_bss_addr + old_bss_size + 0x1234;