summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-06 01:20:35 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-06 01:20:35 +0000
commit3ed21934d134409fd857c6f27a73adc7958af412 (patch)
treee25d35b20586e298954e5f228e93ecbad2d5bb9d /sys-apps/sysvinit/files
parentfixup cross-compiling for mips64 multilib some more with the help of kanaka (diff)
downloadgentoo-2-3ed21934d134409fd857c6f27a73adc7958af412.tar.gz
gentoo-2-3ed21934d134409fd857c6f27a73adc7958af412.tar.bz2
gentoo-2-3ed21934d134409fd857c6f27a73adc7958af412.zip
use syscall() instead of _syscall#() since some arches (like crappy ia64) dont define _syscall#() in their linux headers
(Portage version: 2.0.53)
Diffstat (limited to 'sys-apps/sysvinit/files')
-rw-r--r--sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch b/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch
index 01864ee59116..b5668cf9b44c 100644
--- a/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch
+++ b/sys-apps/sysvinit/files/sysvinit-2.86-POSIX-1003.1e.patch
@@ -13,9 +13,9 @@ http://bugs.gentoo.org/5818
+#ifdef __linux__
+#include <linux/capability.h>
+#include <linux/unistd.h>
-+
-+_syscall2(int, capget, cap_user_header_t, header, cap_user_data_t, data)
-+_syscall2(int, capset, cap_user_header_t, header, const cap_user_data_t, data)
++#include <sys/syscall.h>
++#define capget(header, data) syscall(__NR_capget, header, data)
++#define capset(header, data) syscall(__NR_capset, header, data)
+#endif
+
#include <sys/stat.h>