]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
linux.h: Use off64_t instead of loff_t
authorFelix Janda <felix.janda@posteo.de>
Thu, 4 Feb 2016 21:34:06 +0000 (08:34 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Feb 2016 21:34:06 +0000 (08:34 +1100)
These are equivalent on glibc, while musl does not know loff_t.

In the long run, it would be preferable to enable transparent LFS so
that off64_t could be replaced by off_t.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
include/linux.h

index 674717cf16d21316d82a08fa2b02a9fe21044813..a7d2f850c1fc49169eb01875c5ba70eced65d725 100644 (file)
@@ -141,7 +141,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len)
 #define EFSCORRUPTED   EUCLEAN /* Filesystem is corrupted */
 #define EFSBADCRC      EBADMSG /* Bad CRC detected */
 
-typedef loff_t         xfs_off_t;
+typedef off64_t                xfs_off_t;
 typedef __uint64_t     xfs_ino_t;
 typedef __uint32_t     xfs_dev_t;
 typedef __int64_t      xfs_daddr_t;