summaryrefslogtreecommitdiff
authorWan Yong <wanyong@gmail.com>2011-03-29 07:49:27 (GMT)
committer Wan Yong <wanyong@gmail.com>2011-03-29 07:49:27 (GMT)
commitdc9335048d6aa42088d5ab63653d86f7c2e39200 (patch)
tree81698344810bb98b86ffba29bb3f56165e9be638
parent7811c9cfca123e84ab4fe8f5d3bdf09a0c412b1c (diff)
downloadntfs-3g-dc9335048d6aa42088d5ab63653d86f7c2e39200.zip
ntfs-3g-dc9335048d6aa42088d5ab63653d86f7c2e39200.tar.gz
ntfs-3g-dc9335048d6aa42088d5ab63653d86f7c2e39200.tar.bz2
off_t --> loff_t to fix >2G file access
Diffstat
-rwxr-xr-xconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h b/config.h
index 83d9e78..5ee6935 100755
--- a/config.h
+++ b/config.h
@@ -41,7 +41,9 @@
#define HAVE_DUP2 1
/* Define to 1 if you have the <endian.h> header file. */
+#ifndef HAVE_ENDIAN_H
#define HAVE_ENDIAN_H 1
+#endif
/* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
@@ -333,6 +335,12 @@
/* Number of bits in a file offset, on hosts where this is settable. */
#define _FILE_OFFSET_BITS 64
+#ifndef _OFF_T_DEFINED_
+#define _OFF_T_DEFINED_
+//typedef loff_t off_t;
+#define off_t loff_t
+#endif
+
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1