cvs commit: ports/net/lft Makefile ports/net/lft/files patch-lft.c

Peter Pentchev roam at ringlet.net
Wed Oct 1 06:39:11 PDT 2003


On Tue, Sep 30, 2003 at 05:27:42AM -0700, Edwin Groothuis wrote:
> edwin       2003/09/30 05:27:42 PDT
> 
>   FreeBSD ports repository
> 
>   Modified files:
>     net/lft              Makefile 
>     net/lft/files        patch-lft.c 
>   Log:
>   patch for net/lft
>   
>           ports/net/lft has a slight problem on 4.x servers
>   
>           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
>   
>   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

-- 
Peter Pentchev	roam at ringlet.net    roam at sbnd.net    roam at 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
===================================================================
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 = atol (optarg);
-+      seq_start = atoll (optarg);
++      seq_start = strtoll (optarg, NULL, 10);
        break;
      case 'w':
        win_len = atoi(optarg);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20031001/35624cf5/attachment.bin


More information about the cvs-all mailing list