diff options
author | Ron Yorston <rmy@pobox.com> | 2012-03-31 16:42:58 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-03-31 16:42:58 +0100 |
commit | 0ebbd36f808f10b302bef468b71564b8d7b333ec (patch) | |
tree | 26d38daf99c7154fdd8f1dd7305fc9a8a0bd4a11 /include | |
parent | f9f2117d5b7057f986850741b85bde5c30590b02 (diff) | |
download | busybox-w32-0ebbd36f808f10b302bef468b71564b8d7b333ec.tar.gz busybox-w32-0ebbd36f808f10b302bef468b71564b8d7b333ec.tar.bz2 busybox-w32-0ebbd36f808f10b302bef468b71564b8d7b333ec.zip |
Fix off_t define so MINGW32 doesn't require LFS
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index fd0b09b15..c99612b9c 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -239,7 +239,9 @@ int mingw_mkdir(const char *path, int mode); | |||
239 | /* Use mingw_lstat()/mingw_stat() instead of lstat()/stat() and | 239 | /* Use mingw_lstat()/mingw_stat() instead of lstat()/stat() and |
240 | * mingw_fstat() instead of fstat() on Windows. | 240 | * mingw_fstat() instead of fstat() on Windows. |
241 | */ | 241 | */ |
242 | #define off_t off64_t | 242 | #if ENABLE_LFS |
243 | # define off_t off64_t | ||
244 | #endif | ||
243 | #define lseek _lseeki64 | 245 | #define lseek _lseeki64 |
244 | #define stat _stati64 | 246 | #define stat _stati64 |
245 | int mingw_lstat(const char *file_name, struct stat *buf); | 247 | int mingw_lstat(const char *file_name, struct stat *buf); |