summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_getprio.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
committerDavid Xu <davidxu@FreeBSD.org>2006-04-04 02:57:49 +0000
commit37a6356bbed1e94fd2b0d9d02a29508465584c19 (patch)
tree3cbec5633c5b1de6974d08e11807ee0ce2110a82 /lib/libthr/thread/thr_getprio.c
parent9d9b92aaf4aa46f657f05da8cc5c201ff5257798 (diff)
Notes
Diffstat (limited to 'lib/libthr/thread/thr_getprio.c')
-rw-r--r--lib/libthr/thread/thr_getprio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_getprio.c b/lib/libthr/thread/thr_getprio.c
index fa95ef9540ae..e2cac2f93694 100644
--- a/lib/libthr/thread/thr_getprio.c
+++ b/lib/libthr/thread/thr_getprio.c
@@ -31,8 +31,10 @@
*
* $FreeBSD$
*/
+#include "namespace.h"
#include <errno.h>
#include <pthread.h>
+#include "un-namespace.h"
#include "thr_private.h"
__weak_reference(_pthread_getprio, pthread_getprio);
@@ -43,7 +45,7 @@ _pthread_getprio(pthread_t pthread)
int policy, ret;
struct sched_param param;
- if ((ret = pthread_getschedparam(pthread, &policy, &param)) == 0)
+ if ((ret = _pthread_getschedparam(pthread, &policy, &param)) == 0)
ret = param.sched_priority;
else {
/* Invalid thread: */