mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
a4a7111fd8
- Get to work on sparc. [1] - Fix warnings from gc_cpp.h. [2] Submitted by: Hannes Mehnert <hannes@mehnert.org> [1], des [2]
16 lines
456 B
C
16 lines
456 B
C
--- dyn_load.c.orig Thu May 6 08:03:06 2004
|
|
+++ dyn_load.c Sun Oct 31 01:53:01 2004
|
|
@@ -97,6 +97,12 @@
|
|
# else
|
|
# define ElfW(type) Elf64_##type
|
|
# endif
|
|
+# elif defined(__FreeBSD__)
|
|
+# if __ELF_WORD_SIZE == 32
|
|
+# define ElfW(type) Elf32_##type
|
|
+# else
|
|
+# define ElfW(type) Elf64_##type
|
|
+# endif
|
|
# else
|
|
# if !defined(ELF_CLASS) || ELF_CLASS == ELFCLASS32
|
|
# define ElfW(type) Elf32_##type
|