mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
2a14592aac
issue on FreeBSD 4.x, whose <elf.h> does not define ELFMAG and SELFMAG. PR: 85120 Submitted by: Vasil Dimov <vd@datamax.bg>
17 lines
359 B
C
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
|