diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/pwritev2.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/pwritev2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/pwritev2.c b/sysdeps/unix/sysv/linux/pwritev2.c index 53ab5e7613..a179654970 100644 --- a/sysdeps/unix/sysv/linux/pwritev2.c +++ b/sysdeps/unix/sysv/linux/pwritev2.c @@ -25,12 +25,12 @@ ssize_t pwritev2 (int fd, const struct iovec *vector, int count, off_t offset, int flags) { -# ifdef __NR_pwritev2 + ssize_t result = SYSCALL_CANCEL (pwritev2, fd, vector, count, LO_HI_LONG (offset), flags); if (result >= 0 || errno != ENOSYS) return result; -# endif + /* Trying to emulate the pwritev2 syscall flags is troublesome: * We can not temporary change the file state of the O_DSYNC and O_SYNC |