summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--config.h6
-rwxr-xr-xlibntfs-3g/unix_io.c18
2 files changed, 23 insertions, 1 deletions
diff --git a/config.h b/config.h
index f34630b..1fe90de 100644
--- a/config.h
+++ b/config.h
@@ -1,3 +1,4 @@
+#include <sys/types.h>
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
@@ -412,6 +413,11 @@
/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */
+#ifndef _OFF_T_DEFINED_
+#define _OFF_T_DEFINED_
+#define off_t loff_t
+#endif
+
/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */