openbsd-ports/lang/gcc/3.3/patches/patch-gcc_unwind-dw2-fde-openbsd_c
2005-01-03 15:21:26 +00:00

14 lines
620 B
Plaintext

$OpenBSD: patch-gcc_unwind-dw2-fde-openbsd_c,v 1.1.1.1 2005/01/03 15:21:27 espie Exp $
--- gcc/unwind-dw2-fde-openbsd.c.orig Mon Jan 3 10:17:42 2005
+++ gcc/unwind-dw2-fde-openbsd.c Mon Jan 3 10:17:42 2005
@@ -0,0 +1,9 @@
+/* XXX This file provides a few defines such that we can compile the
+ source from unwind-dw2-fde-glibc.c on OpenBSD. Hopefully we can
+ integrate these defines in that file and rename it to something
+ like unwind-de2-fde-phdr.c in the up-stream sources. */
+
+#define ElfW(type) Elf_##type
+
+#define __GLIBC__ 3 /* Fool unwind-dw2-fde-glibc.c. */
+#include "unwind-dw2-fde-glibc.c"