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.
pull/1/head
Tatsuhiro Tsujikawa 2008-06-16 13:18:26 +00:00
parent d9c17fd34d
commit 2c02415f97
3 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,11 @@
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.
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,

View File

@ -95,7 +95,7 @@
# define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH) # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
#endif /* S_IRWXO */ #endif /* S_IRWXO */
// Use 'null' instead of /dev/null in win32. // Use 'nul' instead of /dev/null in win32.
#ifdef HAVE_WINSOCK2_H #ifdef HAVE_WINSOCK2_H
# define DEV_NULL "nul" # define DEV_NULL "nul"
#else #else
@ -110,7 +110,16 @@
#endif // HAVE_WINSOCK2_H #endif // HAVE_WINSOCK2_H
#ifdef __MINGW32__ #ifdef __MINGW32__
# define lseek(a, b, c) _lseeki64((a), (b), (c)) # define lseek(fd, offset, origin) _lseeki64(fd, offset, origin)
# define fseek(fd, offset, origin) _fseeki64(fd, offset, origin)
# define fstat(fd, buf) _fstati64(fd, buf)
# define ftell(fd) _ftelli64(fd)
# define wstat(path, buf) _wstati64(path, buf)
# ifdef stat
# undef stat
# endif // stat
# define stat(path, buf) _stati64(path, buf)
# define tell(handle) _telli64(handle)
# define a2mkdir(path, openMode) mkdir(path) # define a2mkdir(path, openMode) mkdir(path)
#else #else
# define a2mkdir(path, openMode) mkdir(path, openMode) # define a2mkdir(path, openMode) mkdir(path, openMode)

View File

@ -37,6 +37,13 @@
#ifdef __MINGW32__ #ifdef __MINGW32__
# undef SIZE_MAX # 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__ #endif // __MINGW32__
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H