OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48a61d8
)
libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it
author
Mike Frysinger
<vapier@gentoo.org>
Sat, 17 Nov 2012 20:29:16 +0000
(15:29 -0500)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 17 Nov 2012 20:29:16 +0000
(15:29 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/common/dup3.c
patch
|
blob
|
history
diff --git
a/libc/sysdeps/linux/common/dup3.c
b/libc/sysdeps/linux/common/dup3.c
index
539c071
..
8a57785
100644
(file)
--- 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