fix up lfs64 junk for preadv/pwritev
This commit is contained in:
parent
ea544bfe80
commit
2416c63b81
3 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#include <sys/uio.h>
|
||||
#include <unistd.h>
|
||||
#include "syscall.h"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#define _BSD_SOURCE
|
||||
#include <sys/uio.h>
|
||||
#include <unistd.h>
|
||||
#include "syscall.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue