From f05f3afdc3703a73b11a6baaeafb439de89a23b6 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Wed, 19 May 2010 05:50:08 +0000 Subject: Changed pj_thread_get_prio_max() to return 0 on OpenBSD because it doesn't support it (thanks David Coppa for the patch)(re #1068) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3180 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/os_core_unix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pjlib/src/pj') 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; -- cgit v1.2.3