diff options
author | Calvin <calvin@openmailbox.org> | 2017-02-16 19:36:32 +0300 |
---|---|---|
committer | Calvin <calvin@openmailbox.org> | 2017-02-27 18:27:55 +0300 |
commit | 530ad57bc96414984e211053910dc8735b0557d0 (patch) | |
tree | b06a615e811cfad003a5b30192825fa9eb67770a | |
parent | 8120d7baade9cf49a46e60a6bccf1428680895b7 (diff) |
Haiku hrev50954 makes this ifdef unnecessary
-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; |