summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/tee.c
diff options
context:
space:
mode:
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