Browse Source

libc/sysdeps: dup3: check for __NR_dup3 since older kernels/arches lack it

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 11 years ago
parent
commit
2ff20713c6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/dup3.c

+ 2 - 0
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