about summary refs log tree commit diff
path: root/src/linux/signalfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/signalfd.c')
-rw-r--r--src/linux/signalfd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linux/signalfd.c b/src/linux/signalfd.c
index 1a6c03c3..94de3627 100644
--- a/src/linux/signalfd.c
+++ b/src/linux/signalfd.c
@@ -1,7 +1,8 @@
 #include <sys/signalfd.h>
+#include <signal.h>
 #include "syscall.h"
 
 int signalfd(int fd, const sigset_t *sigs, int flags)
 {
-	return syscall(SYS_signalfd, fd, sigs, __SYSCALL_SSLEN);
+	return syscall(SYS_signalfd, fd, sigs, _NSIG/8);
 }