summaryrefslogtreecommitdiff
path: root/lang/mono6/patches/patch-mono_metadata_icall.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/mono6/patches/patch-mono_metadata_icall.c')
-rw-r--r--lang/mono6/patches/patch-mono_metadata_icall.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/mono6/patches/patch-mono_metadata_icall.c b/lang/mono6/patches/patch-mono_metadata_icall.c
new file mode 100644
index 00000000000..94b8dbf5d66
--- /dev/null
+++ b/lang/mono6/patches/patch-mono_metadata_icall.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-mono_metadata_icall.c,v 1.1 2019/08/25 16:37:01 maya Exp $
+
+NetBSD will side-load <stdbool.h> which must have #define bool _Bool.
+This causes some problems with the C preprocessor usage here. undef it.
+
+--- mono/metadata/icall.c.orig 2019-07-18 07:46:08.000000000 +0000
++++ mono/metadata/icall.c
+@@ -117,6 +117,8 @@
+ #include "icall-decl.h"
+ #include "mono/utils/mono-threads-coop.h"
+
++#undef bool
++
+ //#define MONO_DEBUG_ICALLARRAY
+
+ #ifdef MONO_DEBUG_ICALLARRAY