diff options
-rw-r--r-- | mono/metadata/threads.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/mono/metadata/threads.c b/mono/metadata/threads.c index 14b6f54fd60..c756a06c940 100644 --- a/mono/metadata/threads.c +++ b/mono/metadata/threads.c @@ -642,13 +642,7 @@ mono_thread_internal_set_priority (MonoInternalThread *internal, MonoThreadPrior } res = pthread_setschedparam (tid, policy, ¶m); -#if defined(__HAIKU__) - /* On Haiku, pthread_setschedparam returns a positive number on success, - which is the priority, or a negative number, which is the errno. */ - if (res < 0) { -#else if (res != 0) { -#endif if (res == EPERM) { g_warning ("%s: pthread_setschedparam failed, error: \"%s\" (%d)", __func__, g_strerror (res), res); return; |