summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-10 20:22:28 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-10 20:22:28 +0000
commit47b2dbaaac9757496eb9d419e1912250354d30d1 (patch)
treed20f65d6d96406a0e20800675669b7420ec8c596 /libc/sysdeps/linux
parent656c5c4b20fc2672b4c33cf0d6ce8d0bf5f8426f (diff)
- fix copy'n paste error
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/signalfd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/signalfd.c b/libc/sysdeps/linux/common/signalfd.c
index ab9bba75b..3d76e04c4 100644
--- a/libc/sysdeps/linux/common/signalfd.c
+++ b/libc/sysdeps/linux/common/signalfd.c
@@ -14,13 +14,15 @@
#if defined __NR_signalfd4
#define __NR___syscall_signalfd4 __NR_signalfd4
static __inline__ _syscall4(int, __syscall_signalfd4, int, fd,
- const sigset_t *, mask, size_t, sizemask, int, flags);
+ const sigset_t *, mask, size_t, sizemask, int, flags)
#elif defined __NR_signalfd
-#define __NR___syscall_signalfd __NR_signalfd4
+#define __NR___syscall_signalfd __NR_signalfd
static __inline__ _syscall3(int, __syscall_signalfd, int, fd,
- const sigset_t *, mask, size_t, sizemask);
+ const sigset_t *, mask, size_t, sizemask)
#endif
+#if defined __NR_signalfd4 || defined __NR_signalfd \
+ || defined __UCLIBC_HAS_STUBS__
int signalfd (int fd, const sigset_t *mask, int flags)
{
#if defined __NR___syscall_signalfd4
@@ -36,3 +38,4 @@ int signalfd (int fd, const sigset_t *mask, int flags)
return -1;
#endif
}
+#endif