[runtime] Workaround lack of pthread_kill().
authorJoão Matos <joao@tritao.eu>
Fri, 24 Jul 2015 18:48:14 +0000 (19:48 +0100)
committerJoão Matos <joao@tritao.eu>
Fri, 24 Jul 2015 18:58:55 +0000 (19:58 +0100)
mono/utils/mono-threads-posix.c

index 879e15f3c95c2021e7b4a14febc4bf061c45a75d..e9ca1415c04eee3f37dfd855b451b738d72f7ab6 100644 (file)
@@ -275,6 +275,8 @@ mono_threads_pthread_kill (MonoThreadInfo *info, int signum)
 #elif defined(__native_client__)
        /* Workaround pthread_kill abort() in NaCl glibc. */
        return 0;
+#elif !defined(HAVE_PTHREAD_KILL)
+       g_error ("pthread_kill() is not supported by this platform");
 #else
        return pthread_kill (mono_thread_info_get_tid (info), signum);
 #endif