summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/src/pj/os_core_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c
index c46fbf09..7d267713 100644
--- a/pjlib/src/pj/os_core_unix.c
+++ b/pjlib/src/pj/os_core_unix.c
@@ -311,6 +311,7 @@ PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread)
#if defined _POSIX_PRIORITY_SCHEDULING
return sched_get_priority_min(policy);
#elif defined __OpenBSD__
+ /* OpenBSD doesn't have sched_get_priority_min/_max */
return 0;
#else
pj_assert("pj_thread_get_prio_min() not supported!");
@@ -335,7 +336,8 @@ PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread)
#if defined _POSIX_PRIORITY_SCHEDULING
return sched_get_priority_max(policy);
#elif defined __OpenBSD__
- return 31;
+ /* OpenBSD doesn't have sched_get_priority_min/_max */
+ return 0;
#else
pj_assert("pj_thread_get_prio_max() not supported!");
return 0;