openbsd-ports/editors/emacs23/patches/patch-src_unexelf_c
2011-03-29 19:59:58 +00:00

16 lines
545 B
Plaintext

$OpenBSD: patch-src_unexelf_c,v 1.2 2011/03/29 19:59:58 jasper Exp $
Fix build on OpenBSD/alpha, which is an ELF platform.
--- src/unexelf.c.orig Sat Jan 8 18:45:14 2011
+++ src/unexelf.c Tue Mar 29 21:55:24 2011
@@ -1082,7 +1082,7 @@ temacs:
memcpy (NEW_SECTION_H (nn).sh_offset + new_base, src,
NEW_SECTION_H (nn).sh_size);
-#ifdef __alpha__
+#if defined(__alpha__) && !defined(__OpenBSD__)
/* Update Alpha COFF symbol table: */
if (strcmp (old_section_names + OLD_SECTION_H (n).sh_name, ".mdebug")
== 0)