summaryrefslogtreecommitdiff
path: root/devel/libelf/files/patch-lib::sys_elf.h.in
blob: cb3a30c188c349668620d0a98a696cbefc1cc2d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Provide the missing definitions for the ELF magic bytes.

--- lib/sys_elf.h.in.orig
+++ lib/sys_elf.h.in
@@ -80,6 +80,13 @@
  */
 #ifdef __LIBELF_HEADER_ELF_H
 
+#ifndef ELFMAG
+#define ELFMAG		"\177ELF"
+#endif /* ELFMAG */
+#ifndef SELFMAG
+#define SELFMAG		4
+#endif /* SELFMAG */
+
 # ifndef ELF32_FSZ_ADDR
 #  define ELF32_FSZ_ADDR	4
 #  define ELF32_FSZ_HALF	2