From dc9335048d6aa42088d5ab63653d86f7c2e39200 Mon Sep 17 00:00:00 2001 From: Wan Yong Date: Tue, 29 Mar 2011 07:49:27 +0000 Subject: off_t --> loff_t to fix >2G file access --- 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 header file. */ +#ifndef HAVE_ENDIAN_H #define HAVE_ENDIAN_H 1 +#endif /* Define to 1 if you have the 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 -- cgit