a72a07e53d
While beeing a development release, this is the most stable version I used on OpenBSD for now. Several patches are removed as they went upstream. Thanks to jolan@ for pointing me at this release and cooking a couple of patches. Fix build on powerpc and add it to ONLY_FOR_ARCHS ; slightly tested on macppc. A similar port was successfuly tested by jolan@ on amd64. no objection alek@ (maintainer) ok jolan@ ok jasper@
20 lines
471 B
Plaintext
20 lines
471 B
Plaintext
$OpenBSD: patch-mono_mini_main_c,v 1.1 2009/09/06 07:25:27 ajacoutot Exp $
|
|
--- mono/mini/main.c.orig Sat Aug 15 03:03:10 2009
|
|
+++ mono/mini/main.c Wed Sep 2 20:31:38 2009
|
|
@@ -26,10 +26,14 @@ main ()
|
|
}
|
|
|
|
#else
|
|
-
|
|
+#include <sched.h>
|
|
int
|
|
main (int argc, char* argv[])
|
|
{
|
|
+#if defined(__powerpc__) && defined (__GLIBC__)
|
|
+ unsigned long mask = 1;
|
|
+ sched_setaffinity(0, sizeof(mask), &mask);
|
|
+#endif
|
|
mono_build_date = build_date;
|
|
return mono_main (argc, argv);
|
|
}
|