openbsd-ports/editors/emacs21/patches/patch-src_unexelf.c
mark 2d9dcfd00b Emacs 21.1 import
Some of you may opt to stick with 20.x, as this is a typical beginning of
a major rev.  Maintainership is directed my way, so feed patches to me.

Thanks to A B <obsdfaq30@yahoo.com> for the submission.
2002-02-10 22:05:40 +00:00

29 lines
651 B
C

--- 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)