opnsense-ports/devel/libelf/files/patch-lib__sys_elf.h.in
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
454 B
C

Description: Provide the missing definitions for the ELF magic bytes.
Forwarded: no
Author: Vasil Dimov <vd@datamax.bg>
Last-Update: 2009-11-20
--- 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