openbsd-ports/lang/gfortran/patches/patch-gcc_unwind-dw2-fde-openbsd_c
steven 6f0b523996 import separate port of gfortran 4.2.1, in sync with the base compiler.
meant to be used on archs that have gcc4 in base, this doesn't require a
full gcc build from ports, and provides libgfortran as a subpackage.

idea from espie some months ago.
2010-10-10 17:39:06 +00:00

15 lines
633 B
Plaintext

$OpenBSD: patch-gcc_unwind-dw2-fde-openbsd_c,v 1.1.1.1 2010/10/10 17:39:07 steven Exp $
--- gcc/unwind-dw2-fde-openbsd.c.orig Sat Apr 11 14:24:23 2009
+++ gcc/unwind-dw2-fde-openbsd.c Sat Apr 11 14:24:02 2009
@@ -0,0 +1,10 @@
+/* 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"
+