We now have sched_get_priority_(mix|max)
OK landry@, jasper@
This commit is contained in:
parent
f541de9081
commit
5ef9a9bf73
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2010/10/22 14:36:12 dcoppa Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2010/11/08 10:56:02 dcoppa Exp $
|
||||
|
||||
COMMENT= lightweight sip client
|
||||
|
||||
VERSION= 1.8.5
|
||||
DISTNAME= pjproject-${VERSION}
|
||||
PKGNAME= pjsua-${VERSION}
|
||||
REVISION= 0
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
CATEGORIES= telephony
|
||||
|
||||
|
29
telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c
Normal file
29
telephony/pjsua/patches/patch-pjlib_src_pj_os_core_unix_c
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-pjlib_src_pj_os_core_unix_c,v 1.8 2010/11/08 10:56:02 dcoppa Exp $
|
||||
--- 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;
|
Loading…
Reference in New Issue
Block a user