This is the *BETA* developement line of XEmacs so handle with care. This package is based on pkg/14132 contributed by Eric Gillespie Jr. Most notable change to the release is the possibility to compile xemacs with gtk+. Set XEMACS_WIDGETS accordingly in your mk.conf Possible values are: lucid (default) gtk gnome motif
35 lines
1,019 B
Text
35 lines
1,019 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2002/03/24 19:40:33 magick Exp $
|
|
|
|
--- src/unexelf.c.orig Thu Apr 12 20:24:27 2001
|
|
+++ src/unexelf.c
|
|
@@ -481,10 +481,19 @@
|
|
|
|
#ifndef ElfW
|
|
# ifdef __STDC__
|
|
-# define ElfW(type) Elf32_##type
|
|
+# define ElfBitsW(bits, type) Elf##bits##_##type
|
|
# else
|
|
-# define ElfW(type) Elf32_/**/type
|
|
+# define ElfBitsW(bits, type) Elf/**/bits/**/_/**/type
|
|
# endif
|
|
+# if defined (_LP64) || defined(__alpha__)
|
|
+# define ELFSIZE 64
|
|
+# else
|
|
+# define ELFSIZE 32
|
|
+# endif
|
|
+ /* This macro expands `bits' before invoking ElfBitsW. */
|
|
+# define ElfExpandBitsW(bits, type) ElfBitsW (bits, type)
|
|
+# define ElfW(type) ElfExpandBitsW (ELFSIZE, type)
|
|
+
|
|
#endif
|
|
|
|
#ifndef ELF_BSS_SECTION_NAME
|
|
@@ -952,7 +961,7 @@
|
|
memcpy (NEW_SECTION_H (nn).sh_offset + new_base, src,
|
|
NEW_SECTION_H (nn).sh_size);
|
|
|
|
-#ifdef __alpha__
|
|
+#if defined(__alpha__) && !defined(__NetBSD__)
|
|
/* Update Alpha COFF symbol table: */
|
|
if (strcmp (old_section_names + OLD_SECTION_H (n).sh_name, ".mdebug")
|
|
== 0)
|