From 590f74742c3404d7cf7de1d2dbba7ffe7e80a4e8 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 29 Mar 2006 05:38:19 +0000 Subject: Bring libpthread up to WARNS level 2. Reviewed by: deischen --- lib/libkse/thread/thr_getprio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libkse/thread/thr_getprio.c') diff --git a/lib/libkse/thread/thr_getprio.c b/lib/libkse/thread/thr_getprio.c index 07c1b0b..875c1b3 100644 --- a/lib/libkse/thread/thr_getprio.c +++ b/lib/libkse/thread/thr_getprio.c @@ -31,8 +31,12 @@ * * $FreeBSD$ */ + +#include "namespace.h" #include #include +#include "un-namespace.h" + #include "thr_private.h" LT10_COMPAT_PRIVATE(_pthread_getprio); @@ -46,7 +50,7 @@ _pthread_getprio(pthread_t pthread) int policy, ret; struct sched_param param; - if ((ret = pthread_getschedparam(pthread, &policy, ¶m)) == 0) + if ((ret = _pthread_getschedparam(pthread, &policy, ¶m)) == 0) ret = param.sched_priority; else { /* Invalid thread: */ -- cgit v1.1