From 028183a24d7dc921dbfc26a548675dcbae002f20 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 26 Apr 2011 22:51:23 +0200 Subject: change _NSIG / 8 to __SYSCALL_SIGSET_T_SIZE in common code Since mips has different kernel sigset_t, use the new macro in common code that is used by mips as well. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/signalfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/signalfd.c') diff --git a/libc/sysdeps/linux/common/signalfd.c b/libc/sysdeps/linux/common/signalfd.c index a0c995a89..c9584f015 100644 --- a/libc/sysdeps/linux/common/signalfd.c +++ b/libc/sysdeps/linux/common/signalfd.c @@ -25,13 +25,13 @@ static __inline__ _syscall3(int, __syscall_signalfd, int, fd, int signalfd (int fd, const sigset_t *mask, int flags) { #if defined __NR___syscall_signalfd4 - return __syscall_signalfd4(fd, mask, _NSIG / 8, flags); + return __syscall_signalfd4(fd, mask, __SYSCALL_SIGSET_T_SIZE, flags); #elif defined __NR___syscall_signalfd if (flags != 0) { __set_errno(EINVAL); return -1; } - return __syscall_signalfd(fd, mask, _NSIG / 8); + return __syscall_signalfd(fd, mask, __SYSCALL_SIGSET_T_SIZE); #endif } #endif -- cgit v1.2.3