From 2416c63b81f7f79ea781725cf1117c191775c699 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 9 Sep 2012 16:33:47 -0400 Subject: [PATCH] fix up lfs64 junk for preadv/pwritev --- include/sys/uio.h | 5 +++++ src/unistd/preadv.c | 2 +- src/unistd/pwritev.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/sys/uio.h b/include/sys/uio.h index 60c5c2fe..09b6ab9e 100644 --- a/include/sys/uio.h +++ b/include/sys/uio.h @@ -27,6 +27,11 @@ ssize_t writev (int, const struct iovec *, int); #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) ssize_t preadv (int, const struct iovec *, int, off_t); ssize_t pwritev (int, const struct iovec *, int, off_t); +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define preadv64 preadv +#define pwritev64 pwritev +#define off64_t off_t +#endif #endif #ifdef _GNU_SOURCE diff --git a/src/unistd/preadv.c b/src/unistd/preadv.c index 371e46f8..46d9ece7 100644 --- a/src/unistd/preadv.c +++ b/src/unistd/preadv.c @@ -1,4 +1,4 @@ -#define _GNU_SOURCE +#define _BSD_SOURCE #include #include #include "syscall.h" diff --git a/src/unistd/pwritev.c b/src/unistd/pwritev.c index 1df268d5..aec5d323 100644 --- a/src/unistd/pwritev.c +++ b/src/unistd/pwritev.c @@ -1,4 +1,4 @@ -#define _GNU_SOURCE +#define _BSD_SOURCE #include #include #include "syscall.h" -- 2.25.1