[git commit branch/0.9.33] libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it
Mike Frysinger
vapier at gentoo.org
Fri Nov 30 01:12:14 UTC 2012
commit: http://git.uclibc.org/uClibc/commit/?id=6cdef8bfcb287711dfcc27557b46028d890676b6
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33
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