We now have sched_get_priority_min and sched_get_priority_max. Ok?
ciao, david Index: Makefile =================================================================== RCS file: /cvs/ports/telephony/pjsua/Makefile,v retrieving revision 1.13 diff -u -p -r1.13 Makefile --- Makefile 22 Oct 2010 14:36:12 -0000 1.13 +++ Makefile 7 Nov 2010 19:41:05 -0000 @@ -5,6 +5,7 @@ COMMENT= lightweight sip client VERSION= 1.8.5 DISTNAME= pjproject-${VERSION} PKGNAME= pjsua-${VERSION} +REVISION= 0 EXTRACT_SUFX= .tar.bz2 CATEGORIES= telephony Index: patches/patch-pjlib_src_pj_os_core_unix_c =================================================================== RCS file: patches/patch-pjlib_src_pj_os_core_unix_c diff -N patches/patch-pjlib_src_pj_os_core_unix_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-pjlib_src_pj_os_core_unix_c 7 Nov 2010 19:41:05 -0000 @@ -0,0 +1,29 @@ +$OpenBSD$ +--- pjlib/src/pj/os_core_unix.c.orig Fri Sep 24 09:49:32 2010 ++++ pjlib/src/pj/os_core_unix.c Sun Nov 7 20:32:24 2010 +@@ -311,11 +311,8 @@ PJ_DEF(int) pj_thread_get_prio_min(pj_thread_t *thread + if (rc != 0) + return -1; + +-#if defined _POSIX_PRIORITY_SCHEDULING ++#if defined (_POSIX_PRIORITY_SCHEDULING) || defined(_POSIX_THREAD_PRIORITY_SCHEDULING) + return sched_get_priority_min(policy); +-#elif defined __OpenBSD__ +- /* Thread prio min/max are declared in OpenBSD private hdr */ +- return 0; + #else + pj_assert("pj_thread_get_prio_min() not supported!"); + return 0; +@@ -336,11 +333,8 @@ PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread + if (rc != 0) + return -1; + +-#if defined _POSIX_PRIORITY_SCHEDULING ++#if defined (_POSIX_PRIORITY_SCHEDULING) || defined(_POSIX_THREAD_PRIORITY_SCHEDULING) + return sched_get_priority_max(policy); +-#elif defined __OpenBSD__ +- /* Thread prio min/max are declared in OpenBSD private hdr */ +- return 31; + #else + pj_assert("pj_thread_get_prio_max() not supported!"); + return 0;