openbsd-ports/editors/emacs21/patches/patch-src_unexelf.c

29 lines
651 B
C
Raw Normal View History

--- src/unexelf.c.orig Tue Sep 26 09:01:57 2000
+++ src/unexelf.c Wed Jan 30 18:56:57 2002
@@ -466,7 +466,7 @@
#define hdrNil ((pHDRR)0)
#endif
-#ifdef __NetBSD__
+#if __NetBSD__
/*
* NetBSD does not have normal-looking user-land ELF support.
*/
@@ -520,10 +520,12 @@
# 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)