diff options
author | marcus <marcus@FreeBSD.org> | 2002-09-11 02:25:55 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-09-11 02:25:55 +0800 |
commit | 6257257d1608e67204e2854ac076e07fcbde3e34 (patch) | |
tree | 3a03eab6e2a4f740f8391faea82fb2e504b01130 /lang | |
parent | 21247df8f394b53719140c531239659ca813b045 (diff) | |
download | freebsd-ports-graphics-6257257d1608e67204e2854ac076e07fcbde3e34.tar.gz freebsd-ports-graphics-6257257d1608e67204e2854ac076e07fcbde3e34.tar.zst freebsd-ports-graphics-6257257d1608e67204e2854ac076e07fcbde3e34.zip |
Fix build on -current.
Submitted by: Patrick Hartling <patrick@137.org>
Diffstat (limited to 'lang')
-rw-r--r-- | lang/mono/files/patch-mono_metadata_debug_symfile.c | 19 |
1 files changed, 19 insertions, 0 deletions
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 00000000000..d605a6adac9 --- /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 <stdlib.h> + #include <string.h> + #include <signal.h> ++#include <sys/param.h> + #include <mono/metadata/metadata.h> + #include <mono/metadata/rawbuffer.h> + #include <mono/metadata/tokentype.h> +@@ -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))) |