aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/getpriority.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/getpriority.c')
-rw-r--r--sysdeps/unix/sysv/linux/getpriority.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/getpriority.c b/sysdeps/unix/sysv/linux/getpriority.c
index dba7cb3b41..9be8d3f70b 100644
--- a/sysdeps/unix/sysv/linux/getpriority.c
+++ b/sysdeps/unix/sysv/linux/getpriority.c
@@ -1,5 +1,5 @@
/* getpriority for Linux.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998 Free Software Foundation, Inc.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
@@ -19,6 +19,9 @@
#include <errno.h>
#include <sys/resource.h>
+#include <sysdep.h>
+#include <sys/syscall.h>
+
extern int __syscall_getpriority (int, int);
/* The return value of __syscall_getpriority is biased by this value
@@ -35,7 +38,7 @@ getpriority (enum __priority_which which, int who)
{
int res;
- res = __syscall_getpriority ((int) which, who);
+ res = INLINE_SYSCALL (getpriority, 2, (int) which, who);
if (res >= 0)
res = PZERO - res;
return res;