changeset 27977:026eb782382e

* unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide standard ELF definitions here if the system header does not.
author Ken Raeburn <raeburn@raeburn.org>
date Fri, 03 Mar 2000 15:28:34 +0000
parents 2f598d993fc5
children 6c0c3e14d87f
files src/ChangeLog src/unexelf.c
diffstat 2 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
Binary file src/ChangeLog has changed
--- a/src/unexelf.c	Fri Mar 03 14:00:31 2000 +0000
+++ b/src/unexelf.c	Fri Mar 03 15:28:34 2000 +0000
@@ -478,17 +478,19 @@
 # endif
 # include <sys/exec_elf.h>
 
-# define PT_LOAD	Elf_pt_load
-# define SHT_SYMTAB	Elf_sht_symtab
-# define SHT_DYNSYM	Elf_sht_dynsym
-# define SHT_NULL	Elf_sht_null
-# define SHT_NOBITS	Elf_sht_nobits
-# define SHT_REL	Elf_sht_rel
-# define SHT_RELA	Elf_sht_rela
+# ifndef PT_LOAD
+#  define PT_LOAD	Elf_pt_load
+#  define SHT_SYMTAB	Elf_sht_symtab
+#  define SHT_DYNSYM	Elf_sht_dynsym
+#  define SHT_NULL	Elf_sht_null
+#  define SHT_NOBITS	Elf_sht_nobits
+#  define SHT_REL	Elf_sht_rel
+#  define SHT_RELA	Elf_sht_rela
 
-# define SHN_UNDEF	Elf_eshn_undefined
-# define SHN_ABS	Elf_eshn_absolute
-# define SHN_COMMON	Elf_eshn_common
+#  define SHN_UNDEF	Elf_eshn_undefined
+#  define SHN_ABS	Elf_eshn_absolute
+#  define SHN_COMMON	Elf_eshn_common
+# endif
 
 # ifdef __alpha__
 #  include <sys/exec_ecoff.h>