summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/pwritev.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-02-23 02:59:15 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-02-23 02:59:15 +0100
commitdeccf064840d9719bc5b022fe7ffaf9b9c2147da (patch)
tree3980d0e983af476501c266c4fd894422cb3e86a8 /libc/sysdeps/linux/common/pwritev.c
parent9f57d77a9ac8e8e0adc1122d9822064ac7fb1c6f (diff)
guard new syscalls preadv/pwritev
Diffstat (limited to 'libc/sysdeps/linux/common/pwritev.c')
-rw-r--r--libc/sysdeps/linux/common/pwritev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/pwritev.c b/libc/sysdeps/linux/common/pwritev.c
index cbc58f95d..a1880ed32 100644
--- a/libc/sysdeps/linux/common/pwritev.c
+++ b/libc/sysdeps/linux/common/pwritev.c
@@ -19,8 +19,10 @@
#include <sys/syscall.h>
#include <unistd.h>
+#ifdef __NR_pwritev
ssize_t
pwritev (int fd, const struct iovec *vector, int count, off_t offset)
{
return INLINE_SYSCALL (pwritev, 4, fd, vector, count, offset);
}
+#endif