patch-mono_mini_main_c 483 B

1234567891011121314151617181920
  1. $OpenBSD: patch-mono_mini_main_c,v 1.4 2016/06/26 10:40:28 robert Exp $
  2. --- mono/mini/main.c.orig Thu Jun 9 17:01:57 2016
  3. +++ mono/mini/main.c Thu Jun 23 19:29:27 2016
  4. @@ -167,10 +167,14 @@ main (void)
  5. }
  6. #else
  7. -
  8. +#include <sched.h>
  9. int
  10. main (int argc, char* argv[])
  11. {
  12. +#if defined(__powerpc__) && defined (__GLIBC__)
  13. + unsigned long mask = 1;
  14. + sched_setaffinity(0, sizeof(mask), &mask);
  15. +#endif
  16. mono_build_date = build_date;
  17. probe_embedded (argv [0], &argc, &argv);