summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-17 15:29:16 -0500
committerMike Frysinger <vapier@gentoo.org>2012-11-17 15:29:16 -0500
commit2ff20713c6886b08d96dfb4ba82fa4c8cdb882c2 (patch)
treecfc512cbb7ca26350d51656f0f6237f7920e8256
parent48a61d889e825bc73e640bca86e22ec6bb801d15 (diff)
libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libc/sysdeps/linux/common/dup3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/dup3.c b/libc/sysdeps/linux/common/dup3.c
index 539c0716c..8a5778577 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