summaryrefslogtreecommitdiff
path: root/devel/libelf/patches/patch-aa
blob: 00af7e40ab8fc2432dc7317a4399f193942c8bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-aa,v 1.1.1.1 2004/03/04 11:28:00 recht Exp $

--- lib/sys_elf.h.in.orig	2004-02-26 15:02:52.000000000 -0800
+++ lib/sys_elf.h.in	2004-02-24 17:12:43.000000000 -0800
@@ -85,6 +85,10 @@
 #  define ELF32_FSZ_WORD	4
 # endif /* ELF32_FSZ_ADDR */
 
+# ifndef EI_NIDENT
+#  define EI_NIDENT ELF_NIDENT
+# endif /* EI_NIDENT */
+
 # ifndef STN_UNDEF
 #  define STN_UNDEF	0
 # endif /* STN_UNDEF */
@@ -101,6 +105,10 @@
 #   define ELF64_FSZ_XWORD	8
 #  endif /* ELF64_FSZ_ADDR */
 
+#  ifndef ELF64_FSZ_SXWORD
+#   define ELF64_FSZ_SXWORD	8
+#  endif
+
 #  ifndef ELF64_ST_BIND
 #   define ELF64_ST_BIND(i)	((i)>>4)
 #   define ELF64_ST_TYPE(i)	((i)&0xf)