[git commit] libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it

Mike Frysinger vapier at gentoo.org
Sat Nov 17 20:29:16 UTC 2012


commit: http://git.uclibc.org/uClibc/commit/?id=2ff20713c6886b08d96dfb4ba82fa4c8cdb882c2
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 libc/sysdeps/linux/common/dup3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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


More information about the uClibc-cvs mailing list