chiark / gitweb /
volume_id: provide libvolume_id.a file
[elogind.git] / klibc / klibc / getpriority.c
index d6db2cc6b9542ebfe1d55d53c53136d45c564912..4ea630487d3b5fdc0388566bc951249a45edc2ef 100644 (file)
 #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