elf.h: rename ELF_MAGIC to ELFMAG

- This is how it is named in other versions of elf.h (Linux, glibc, possibly more)
- ELF_MAGIC is used by libelf for the same thing, and the defines conflicts,
  breaking libelf build on Haiku.
This commit is contained in:
Adrien Destugues
2016-08-06 20:32:47 +02:00
parent b4aed463ac
commit 8efb6db7b9
9 changed files with 11 additions and 14 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ typedef struct {
#endif
} Elf64_Ehdr;
#define ELF_MAGIC "\x7f""ELF"
#define ELFMAG "\x7f""ELF"
/* e_ident[] indices */
#define EI_MAG0 0