1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/libelf/files/patch-lib::sys_elf.h.in
Peter Pentchev 3f9ae33a10 Update to libelf-0.8.13, almost as per the PR.
While I'm here, extend the descriptive patch headers.

PR:		140716
Submitted by:	Sofian Brabez <sbrabez@gmail.com>
2009-11-20 10:31:09 +00:00

22 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