summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/splice.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/splice.c')
-rw-r--r--libc/sysdeps/linux/common/splice.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/splice.c b/libc/sysdeps/linux/common/splice.c
index 83f348a48..4a32c54a8 100644
--- a/libc/sysdeps/linux/common/splice.c
+++ b/libc/sysdeps/linux/common/splice.c
@@ -8,9 +8,10 @@
*/
#include <sys/syscall.h>
-#include <fcntl.h>
-#ifdef __NR_splice
-_syscall6(ssize_t, splice, int, __fdin, __off64_t *, __offin, int, __fdout,
- __off64_t *, __offout, size_t, __len, unsigned int, __flags)
+#if defined __NR_splice && defined __UCLIBC_HAS_LFS__ && defined __USE_GNU
+# include <fcntl.h>
+
+_syscall6(ssize_t, splice, int, __fdin, off64_t *, __offin, int, __fdout,
+ off64_t *, __offout, size_t, __len, unsigned int, __flags)
#endif