summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/preadv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/preadv.c')
-rw-r--r--libc/sysdeps/linux/common/preadv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/preadv.c b/libc/sysdeps/linux/common/preadv.c
index 20adc6d6d..b90291b5a 100644
--- a/libc/sysdeps/linux/common/preadv.c
+++ b/libc/sysdeps/linux/common/preadv.c
@@ -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