chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the gentoo udev rules to allow the box to boot properly
[elogind.git]
/
klibc
/
klibc
/
getpriority.c
diff --git
a/klibc/klibc/getpriority.c
b/klibc/klibc/getpriority.c
index d6db2cc6b9542ebfe1d55d53c53136d45c564912..4ea630487d3b5fdc0388566bc951249a45edc2ef 100644
(file)
--- a/
klibc/klibc/getpriority.c
+++ b/
klibc/klibc/getpriority.c
@@
-10,16
+10,14
@@
#include <sys/resource.h>
#include <sys/syscall.h>
#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)
{
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;
return ( rv < 0 ) ? rv : 20-rv;
-#endif
}
}
+
+#endif