[PATCH v2 02/46] libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it
Markos Chandras
markos.chandras at gmail.com
Mon Nov 26 14:23:44 UTC 2012
From: Mike Frysinger <vapier at gentoo.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
libc/sysdeps/linux/common/dup3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c
index 539c071..8a57785 100644
--- a/libc/sysdeps/linux/common/dup3.c
+++ b/libc/sysdeps/linux/common/dup3.c
@@ -10,4 +10,6 @@
#include <sys/syscall.h>
#include <unistd.h>
+#if defined(__NR_dup3)
_syscall3(int, dup3, int, oldfd, int, newfd, int, flags)
+#endif
--
1.8.0
More information about the uClibc
mailing list