Date: Wed, 1 Oct 2003 16:39:04 +0300 From: Peter Pentchev <roam@ringlet.net> To: Edwin Groothuis <edwin@FreeBSD.org> Cc: ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/net/lft Makefile ports/net/lft/files patch-lft.c Message-ID: <20031001133904.GR551@straylight.oblivion.bg> In-Reply-To: <200309301227.h8UCRg5J081765@repoman.freebsd.org> References: <200309301227.h8UCRg5J081765@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--HFD/Dq8JdnjNvyuv Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 30, 2003 at 05:27:42AM -0700, Edwin Groothuis wrote: > edwin 2003/09/30 05:27:42 PDT >=20 > FreeBSD ports repository >=20 > Modified files: > net/lft Makefile=20 > net/lft/files patch-lft.c=20 > Log: > patch for net/lft > =20 > ports/net/lft has a slight problem on 4.x servers > =20 > GCC 2.95 does not support atol on 4.x, where as 5.x has > atol, to solve this slight problem we must use either a > version check, or use depreciated atoll > =20 > Informed maintainer. However, my 4.9-RC doesn't have atoll(3) at all - neither as a manpage, nor even in the src/lib/libc/stdlib/ sources. How about the following patch, which makes it use strtoll(3) instead? G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 I had to translate this sentence into English because I could not read the = original Sanskrit. Index: ports/net/lft/files/patch-lft.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/ports/net/lft/files/patch-lft.c,v retrieving revision 1.3 diff -u -r1.3 patch-lft.c --- ports/net/lft/files/patch-lft.c 30 Sep 2003 12:27:42 -0000 1.3 +++ ports/net/lft/files/patch-lft.c 1 Oct 2003 13:34:21 -0000 @@ -54,7 +54,7 @@ break; case 'q': - seq_start =3D atol (optarg); -+ seq_start =3D atoll (optarg); ++ seq_start =3D strtoll (optarg, NULL, 10); break; case 'w': win_len =3D atoi(optarg); --HFD/Dq8JdnjNvyuv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/etj47Ri2jRYZRVMRAvVqAKCB0C/T3mggg5GaAPFMRfL6XubmZACgj2Ex d5SGuNVVEgX9plwCgZHtdqc= =wMZj -----END PGP SIGNATURE----- --HFD/Dq8JdnjNvyuv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031001133904.GR551>