#include <config.h>
#include <signal.h>
+#if HAVE_SCHED_SETAFFINITY
+#include <sched.h>
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
setlocale (LC_ALL, "");
+#if HAVE_SCHED_SETAFFINITY
+ if (getenv ("MONO_NO_SMP")) {
+ unsigned long proc_mask = 1;
+ sched_setaffinity (getpid(), sizeof (unsigned long), &proc_mask);
+ }
+#endif
if (!g_thread_supported ())
g_thread_init (NULL);