diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-16 13:18:26 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-06-16 13:18:26 +0000 |
| commit | 2c02415f97743f332b227ccd82e66a51de59210c (patch) | |
| tree | 51249f417582a33e345cd7e8da7206028a71d052 /src/common.h | |
| parent | d9c17fd34dcb9a935ac75b049fa818fa99e39317 (diff) | |
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
a2io.h and common.h were modified.
* src/a2io.h: Changed seek/stat/tell calls to use 64 bit
versions in
MinGW.
* src/common.h: Changed off_t to 64 bit in MinGW.
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 429e1e52..4096d630 100644 --- a/src/common.h +++ b/src/common.h @@ -37,6 +37,13 @@ #ifdef __MINGW32__ # undef SIZE_MAX +# ifndef _OFF_T_ +# define _OFF_T_ + typedef long long _off_t; +# ifndef _NO_OLDNAMES + typedef _off_t off_t; +# endif // !_NO_OLDNAMES +# endif // !_OFF_T_ #endif // __MINGW32__ #ifdef HAVE_CONFIG_H |
