e59f31
Revert, because off64_t isn't available w/o LFS defines;
e59f31
upstream this needs to be handled seamlessly but we don't
e59f31
want to change existing RHEL behavior for code that includes
e59f31
xfs.h
e59f31
e59f31
commit cb898f157f8410a03cf5f3400baa1df9e5eecd33
e59f31
Author: Felix Janda <felix.janda@posteo.de>
e59f31
Date:   Fri Feb 5 08:34:06 2016 +1100
e59f31
e59f31
    linux.h: Use off64_t instead of loff_t
e59f31
    
e59f31
    These are equivalent on glibc, while musl does not know loff_t.
e59f31
    
e59f31
    In the long run, it would be preferable to enable transparent LFS so
e59f31
    that off64_t could be replaced by off_t.
e59f31
    
e59f31
    Signed-off-by: Felix Janda <felix.janda@posteo.de>
e59f31
    Reviewed-by: Christoph Hellwig <hch@lst.de>
e59f31
    Signed-off-by: Dave Chinner <david@fromorbit.com>
e59f31
e59f31
diff --git a/include/linux.h b/include/linux.h
e59f31
index 674717c..a7d2f85 100644
e59f31
--- a/include/linux.h
e59f31
+++ b/include/linux.h
e59f31
@@ -141,7 +141,7 @@ platform_discard_blocks(int fd, uint64_t start, uint64_t len)
e59f31
 #define EFSCORRUPTED	EUCLEAN	/* Filesystem is corrupted */
e59f31
 #define EFSBADCRC	EBADMSG	/* Bad CRC detected */
e59f31
 
e59f31
-typedef off64_t		xfs_off_t;
e59f31
+typedef loff_t		xfs_off_t;
e59f31
 typedef __uint64_t	xfs_ino_t;
e59f31
 typedef __uint32_t	xfs_dev_t;
e59f31
 typedef __int64_t	xfs_daddr_t;