summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/tee.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-06 12:36:33 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:35 +0200
commitfc4b1388b3a3e872d796f3e99ba129c55706f9d6 (patch)
tree8f6d61d8e3f9670188fc92e07113abc322c27896 /libc/sysdeps/linux/common/tee.c
parent0265be6d436a68c70bfa7788a461fc4059716a25 (diff)
tee,vmsplice: mark them as GNU extensions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/tee.c')
-rw-r--r--libc/sysdeps/linux/common/tee.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/tee.c b/libc/sysdeps/linux/common/tee.c
index 504776716..2b11d9ecb 100644
--- a/libc/sysdeps/linux/common/tee.c
+++ b/libc/sysdeps/linux/common/tee.c
@@ -8,9 +8,10 @@
*/
#include <sys/syscall.h>
-#include <fcntl.h>
-#ifdef __NR_tee
+#if defined __NR_tee && defined __USE_GNU
+# include <fcntl.h>
+
_syscall4(ssize_t, tee, int, __fdin, int, __fdout, size_t, __len,
- unsigned int, __flags)
+ unsigned int, __flags)
#endif