diff options
author | Benny Prijono <bennylp@teluu.com> | 2010-05-19 05:50:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2010-05-19 05:50:08 +0000 |
commit | f05f3afdc3703a73b11a6baaeafb439de89a23b6 (patch) | |
tree | 6f83a27c902820d658902654907b7b8d768e753b /pjlib/src/pj | |
parent | 4c22140f2fb12bc31cc4c77c05072a45b4925804 (diff) |
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
Diffstat (limited to 'pjlib/src/pj')
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 4 |
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; |