2002-03-23 14:13:14 -05:00
|
|
|
--- src/unexelf.c.orig Tue Sep 26 07:01:57 2000
|
|
|
|
+++ src/unexelf.c Fri Mar 22 23:02:09 2002
|
|
|
|
@@ -466,7 +466,7 @@ typedef struct {
|
2002-02-10 17:05:40 -05:00
|
|
|
#define hdrNil ((pHDRR)0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#ifdef __NetBSD__
|
2002-03-23 14:13:14 -05:00
|
|
|
+#if defined (__NetBSD__) || defined (__OpenBSD__)
|
2002-02-10 17:05:40 -05:00
|
|
|
/*
|
|
|
|
* NetBSD does not have normal-looking user-land ELF support.
|
|
|
|
*/
|
2002-03-23 14:13:14 -05:00
|
|
|
@@ -520,10 +520,12 @@ typedef struct {
|
2002-02-10 17:05:40 -05:00
|
|
|
# else
|
|
|
|
# define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type
|
|
|
|
# endif
|
|
|
|
-# ifdef _LP64
|
|
|
|
-# define ELFSIZE 64
|
|
|
|
-# else
|
|
|
|
-# define ELFSIZE 32
|
|
|
|
+# ifndef __OpenBSD__
|
|
|
|
+# ifdef _LP64
|
|
|
|
+# define ELFSIZE 64
|
|
|
|
+# else
|
|
|
|
+# define ELFSIZE 32
|
|
|
|
+# endif
|
|
|
|
# endif
|
|
|
|
/* This macro expands `bits' before invoking ElfBitsW. */
|
|
|
|
# define ElfExpandBitsW(bits, type) ElfBitsW (bits, type)
|