From 6257257d1608e67204e2854ac076e07fcbde3e34 Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 10 Sep 2002 18:25:55 +0000 Subject: Fix build on -current. Submitted by: Patrick Hartling --- lang/mono/files/patch-mono_metadata_debug_symfile.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lang/mono/files/patch-mono_metadata_debug_symfile.c (limited to 'lang') diff --git a/lang/mono/files/patch-mono_metadata_debug_symfile.c b/lang/mono/files/patch-mono_metadata_debug_symfile.c new file mode 100644 index 000000000000..d605a6adac9c --- /dev/null +++ b/lang/mono/files/patch-mono_metadata_debug_symfile.c @@ -0,0 +1,19 @@ +--- mono/metadata/debug-symfile.c.orig Tue Sep 10 14:21:57 2002 ++++ mono/metadata/debug-symfile.c Tue Sep 10 14:23:17 2002 +@@ -2,6 +2,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -165,7 +166,7 @@ + get_sections (MonoDebugSymbolFile *symfile, gboolean emit_warnings) + { + #ifdef HAVE_ELF_H +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) && __FreeBSD_version < 500023 + static const char ELFMAG[] = { ELFMAG0, ELFMAG1, ELFMAG2, ELFMAG3, 0 }; + #endif + if (!strncmp (symfile->raw_contents, ELFMAG, strlen (ELFMAG))) -- cgit