From fc775a9d9e3f1ec81aa18b1485e9e57dda45a240 Mon Sep 17 00:00:00 2001 From: dcoppa Date: Fri, 24 Sep 2010 07:52:37 +0000 Subject: [PATCH] After discussion with fgsch@ and others, It's now clear that I was wrong and 31 IS the correct value: shame on me... "You need to revive the patch that was before 1.7" fgsch@ --- telephony/pjsua/Makefile | 3 ++- .../pjsua/patches/patch-pjlib_src_pj_os_core_unix_c | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c diff --git a/telephony/pjsua/Makefile b/telephony/pjsua/Makefile index 6d5f8bce6bc..42ac70b8bf7 100644 --- a/telephony/pjsua/Makefile +++ b/telephony/pjsua/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.11 2010/09/16 07:59:23 dcoppa Exp $ +# $OpenBSD: Makefile,v 1.12 2010/09/24 07:52:37 dcoppa Exp $ COMMENT= lightweight sip client VERSION= 1.8 DISTNAME= pjproject-${VERSION} PKGNAME= pjsua-${VERSION} +REVISION= 0 EXTRACT_SUFX= .tar.bz2 CATEGORIES= telephony diff --git a/telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c b/telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c new file mode 100644 index 00000000000..4486230ac05 --- /dev/null +++ b/telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-pjlib_src_pj_os_core_unix_c,v 1.5 2010/09/24 07:52:37 dcoppa Exp $ +--- pjlib/src/pj/os_core_unix.c.orig Wed May 19 07:50:08 2010 ++++ pjlib/src/pj/os_core_unix.c Fri Sep 24 09:27:00 2010 +@@ -337,7 +337,7 @@ PJ_DEF(int) pj_thread_get_prio_max(pj_thread_t *thread + return sched_get_priority_max(policy); + #elif defined __OpenBSD__ + /* OpenBSD doesn't have sched_get_priority_min/_max */ +- return 0; ++ return 31; + #else + pj_assert("pj_thread_get_prio_max() not supported!"); + return 0;