1787e4c6d4
spotted by Vadim Zhukov Regen patches while here.
17 lines
496 B
Plaintext
17 lines
496 B
Plaintext
$OpenBSD: patch-mono_utils_gc_wrapper_h,v 1.2 2011/11/03 09:55:12 ajacoutot Exp $
|
|
--- mono/utils/gc_wrapper.h.orig Tue Aug 23 02:10:06 2011
|
|
+++ mono/utils/gc_wrapper.h Thu Nov 3 08:54:45 2011
|
|
@@ -37,6 +37,12 @@
|
|
# endif
|
|
# endif
|
|
|
|
+ /*
|
|
+ * In the case of multithreaded code, gc.h should be included
|
|
+ * after the threads header file, and after defining GC_THREADS.
|
|
+ */
|
|
+# include <pthread.h>
|
|
+# define GC_THREADS
|
|
# ifdef HAVE_GC_GC_H
|
|
# include <gc/gc.h>
|
|
# include <gc/gc_typed.h>
|