summaryrefslogtreecommitdiff
path: root/klibc/klibc/getpriority.c
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/klibc/getpriority.c')
-rw-r--r--klibc/klibc/getpriority.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/klibc/klibc/getpriority.c b/klibc/klibc/getpriority.c
index d6db2cc6b9..4ea630487d 100644
--- a/klibc/klibc/getpriority.c
+++ b/klibc/klibc/getpriority.c
@@ -10,16 +10,14 @@
#include <sys/resource.h>
#include <sys/syscall.h>
-#define __NR__getpriority __NR_getpriority
+#if !defined(__alpha__) && !defined(__ia64__)
-static inline _syscall2(int,_getpriority,int,which,int,who);
+extern int __getpriority(int, int);
int getpriority(int which, int who)
{
-#if defined(__alpha__) || defined(__ia64__)
- return _getpriority(which, who);
-#else
- int rv = _getpriority(which, who);
+ int rv = __getpriority(which, who);
return ( rv < 0 ) ? rv : 20-rv;
-#endif
}
+
+#endif