1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/devel/boehm-gc/files/patch-dyn_load.c
MANTANI Nobutaka a4a7111fd8 - Update to 6.3.
- Get to work on sparc. [1]
- Fix warnings from gc_cpp.h. [2]

Submitted by:	Hannes Mehnert <hannes@mehnert.org> [1], des [2]
2004-11-08 16:33:05 +00:00

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