From deccf064840d9719bc5b022fe7ffaf9b9c2147da Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Thu, 23 Feb 2017 02:59:15 +0100
Subject: [PATCH] guard new syscalls preadv/pwritev
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
libc/sysdeps/linux/common/preadv.c | 2 ++
libc/sysdeps/linux/common/pwritev.c | 2 ++
2 files changed, 4 insertions(+)
@@ -19,8 +19,10 @@
#include <sys/syscall.h>
#include <unistd.h>
+#ifdef __NR_preadv
ssize_t
preadv (int fd, const struct iovec *vector, int count, off_t offset)
{
return INLINE_SYSCALL (preadv, 4, fd, vector, count, offset);
}
+#endif
@@ -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
--
2.1.4