aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-09-11 02:25:55 +0800
committermarcus <marcus@FreeBSD.org>2002-09-11 02:25:55 +0800
commit6257257d1608e67204e2854ac076e07fcbde3e34 (patch)
tree3a03eab6e2a4f740f8391faea82fb2e504b01130 /lang
parent21247df8f394b53719140c531239659ca813b045 (diff)
downloadfreebsd-ports-gnome-6257257d1608e67204e2854ac076e07fcbde3e34.tar.gz
freebsd-ports-gnome-6257257d1608e67204e2854ac076e07fcbde3e34.tar.zst
freebsd-ports-gnome-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.c19
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 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 <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)))