Use 64-bit counters
Jeff Sipek <[email protected]> Mon, 11 Jul 2005 01:18:08 -0400
| Newsgroups | gmane.comp.web.wget.patches |
|---|---|
| Message-ID | <[email protected]> |
--jousvV0MzM2p6OtC Content-Type: multipart/mixed; boundary="rJwd6BRFiFCcLxzm" Content-Disposition: inline --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch changes the wgint from off_t to unsigned long long. This way, wget doesn't blow up when we try to download files >2GB (eg. DVD ISOs). Tested on Debian Sid. Josef "Jeff" Sipek 2005-07-11 Josef "Jeff" Sipek <[email protected]> * wget.h: Changed definition of wgint to unsigned long long on non-Windows systems. =09 --rJwd6BRFiFCcLxzm Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="wget-counter.diff" Content-Transfer-Encoding: quoted-printable diff -ur wget-1.10/src/wget.h wget-1.10-mod/src/wget.h --- wget-1.10/src/wget.h 2005-05-14 15:36:30.000000000 -0400 +++ wget-1.10-mod/src/wget.h 2005-07-10 19:15:48.000000000 -0400 @@ -119,8 +119,8 @@ 32-bit on Windows. */ =20 #ifndef WINDOWS -typedef off_t wgint; -# define SIZEOF_WGINT SIZEOF_OFF_T +typedef unsigned long long wgint; +# define SIZEOF_WGINT 8 #endif =20 /* Define a strtol/strtoll clone that works with wgint. */ --rJwd6BRFiFCcLxzm-- --jousvV0MzM2p6OtC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFC0gEPwFP0+seVj/4RAveQAJ9THzHBiDYqlAVAqOaNWbly8k4OhACdHxSl OFqKLFr7US4rOLzc8l9lN1Q= =288u -----END PGP SIGNATURE----- --jousvV0MzM2p6OtC--