From: Ken Raeburn Date: Fri, 3 Mar 2000 15:28:34 +0000 (+0000) Subject: * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide X-Git-Tag: emacs-pretest-21.0.90~4782 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0007072a724b8ab5ccfc9d450111af5b49479ca6;p=emacs.git * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide standard ELF definitions here if the system header does not. --- diff --git a/src/ChangeLog b/src/ChangeLog index e4bd79a715e..dbc54c009c1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-03-03 Ken Raeburn + + * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide + standard ELF definitions here if the system header does not. + 2000-03-03 Gerd Moellmann * xterm.c (PER_CHAR_METRIC): Removed. diff --git a/src/unexelf.c b/src/unexelf.c index ad0f346be3c..a90885ba64f 100644 --- a/src/unexelf.c +++ b/src/unexelf.c @@ -478,17 +478,19 @@ typedef struct { # endif # include -# 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 +# 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 +# endif # ifdef __alpha__ # include