[Mono-dev] Include pthread.h in mono/utils/gc_wrapper.h and kill bash in web/mono-build.sh

Robert Nagy robert at openbsd.org
Sun Apr 4 09:03:21 EDT 2010


Index: mono/utils/gc_wrapper.h
===================================================================
--- mono/utils/gc_wrapper.h     (revision 154762)
+++ mono/utils/gc_wrapper.h     (working copy)
@@ -33,6 +33,14 @@
 #       endif
 #      endif
 
+       /*
+        * In the case of multithreaded code, gc.h should be included
+        * after the threads header file, and after defining GC_THREADS.
+        */
+#      if defined(HAVE_PTHREAD_H)
+#      include <pthread.h>
+#      endif
+#      define GC_THREADS
 #      ifdef HAVE_GC_GC_H
 #              include <gc/gc.h>
 #              include <gc/gc_typed.h>
Index: web/mono-build.sh
===================================================================
--- web/mono-build.sh   (revision 154762)
+++ web/mono-build.sh   (working copy)
@@ -1,4 +1,4 @@
-#! /usr/bin/env bash
+#!/bin/sh
 
 # Script to automate the building of mono and its dependencies.
 # Relies on wget being installed (could make it fall back to using


More information about the Mono-devel-list mailing list