aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/posix_fallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/posix_fallocate.c')
-rw-r--r--sysdeps/posix/posix_fallocate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/posix_fallocate.c b/sysdeps/posix/posix_fallocate.c
index 46ce06f..add1b3b 100644
--- a/sysdeps/posix/posix_fallocate.c
+++ b/sysdeps/posix/posix_fallocate.c
@@ -27,7 +27,7 @@
int
posix_fallocate (int fd, __off_t offset, size_t len)
{
- struct stat st;
+ struct stat64 st;
struct statfs f;
size_t step;
@@ -40,7 +40,7 @@ posix_fallocate (int fd, __off_t offset, size_t len)
/* First thing we have to make sure is that this is really a regular
file. */
- if (__fxstat (_STAT_VER, fd, &st) != 0)
+ if (__fxstat64 (_STAT_VER, fd, &st) != 0)
return EBADF;
if (S_ISFIFO (st.st_mode))
return ESPIPE;