1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/libelf/files/patch-lib::sys_elf.h.in
Peter Pentchev 2a14592aac Update to libelf 0.8.6. In addition to the update in the PR, fix a build
issue on FreeBSD 4.x, whose <elf.h> does not define ELFMAG and SELFMAG.

PR:		85120
Submitted by:	Vasil Dimov <vd@datamax.bg>
2005-09-05 22:36:33 +00:00

17 lines
359 B
C

+++ lib/sys_elf.h.in.orig Mon Sep 5 22:31:49 2005
--- lib/sys_elf.h.in Mon Sep 5 22:33:06 2005
@@ -77,6 +77,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