summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/vmsplice.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/vmsplice.c')
-rw-r--r--libc/sysdeps/linux/common/vmsplice.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/vmsplice.c b/libc/sysdeps/linux/common/vmsplice.c
index dd0640e1e..b0d71935c 100644
--- a/libc/sysdeps/linux/common/vmsplice.c
+++ b/libc/sysdeps/linux/common/vmsplice.c
@@ -8,9 +8,10 @@
*/
#include <sys/syscall.h>
-#include <fcntl.h>
-#ifdef __NR_vmsplice
+#if defined __NR_vmsplice && defined __USE_GNU
+# include <fcntl.h>
+
_syscall4(ssize_t, vmsplice, int, __fdout, const struct iovec *, __iov,
- size_t, __count, unsigned int, __flags)
+ size_t, __count, unsigned int, __flags)
#endif