From 86ad0d12e1c7de85ca88c00fb8975b7a56be915e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 6 Nov 2009 23:45:30 +0000 Subject: [PATCH] Fix MIPS fallocate for -D_FILE_OFFSET_BITS=64. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (fallocate): Fix types of last two arguments when -D_FILE_OFFSET_BITS=64. --- ChangeLog.mips | 5 +++++ sysdeps/unix/sysv/linux/mips/bits/fcntl.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.mips b/ChangeLog.mips index d4afc96c8f5..e7a051811ba 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-11-06 Joseph Myers + + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (fallocate): Fix types + of last two arguments when -D_FILE_OFFSET_BITS=64. + 2009-10-29 Joseph Myers * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define F_OWNER_* and diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h index e451696524b..88f752db6a8 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h @@ -272,8 +272,8 @@ extern ssize_t tee (int __fdin, int __fdout, size_t __len, extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); # else # ifdef __REDIRECT -extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset, - __off_t __len), +extern int __REDIRECT (fallocate, (int __fd, int __mode, __off64_t __offset, + __off64_t __len), fallocate64); # else # define fallocate fallocate64 -- 2.47.2