diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/fallocate.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/fallocate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/fallocate.c b/sysdeps/unix/sysv/linux/fallocate.c index f65864f3f1..a45b0f831d 100644 --- a/sysdeps/unix/sysv/linux/fallocate.c +++ b/sysdeps/unix/sysv/linux/fallocate.c @@ -16,6 +16,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <errno.h> #include <fcntl.h> #include <sysdep.h> @@ -24,7 +25,7 @@ int fallocate (int fd, int mode, __off_t offset, __off_t len) { - return INLINE_SYSCALL (fallocate, err, 6, fd, mode, + return INLINE_SYSCALL (fallocate, 6, fd, mode, __LONG_LONG_PAIR (offset >> 31, offset), __LONG_LONG_PAIR (len >> 31, len)); } |