Contents of /trunk/cvs/patches/cvs-1.11.23-getline64.patch
Parent Directory | Revision Log
Revision 901 -
(show annotations)
(download)
Fri Oct 16 15:56:18 2009 UTC (14 years, 11 months ago) by niro
File size: 841 byte(s)
Fri Oct 16 15:56:18 2009 UTC (14 years, 11 months ago) by niro
File size: 841 byte(s)
added patch to fix build on x86_64
1 | --- cvs-1.11.23/lib/getline.c 2005-04-04 22:46:05.000000000 +0200 |
2 | +++ cvs-1.11.23/lib/getline.c.old 2008-06-03 19:06:25.000000000 +0200 |
3 | @@ -154,7 +154,7 @@ |
4 | return ret; |
5 | } |
6 | |
7 | -int |
8 | +ssize_t |
9 | getline (lineptr, n, stream) |
10 | char **lineptr; |
11 | size_t *n; |
12 | @@ -163,7 +163,7 @@ |
13 | return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT); |
14 | } |
15 | |
16 | -int |
17 | +ssize_t |
18 | getline_safe (lineptr, n, stream, limit) |
19 | char **lineptr; |
20 | size_t *n; |
21 | --- cvs-1.11.23/lib/getline.h 2005-04-04 22:46:05.000000000 +0200 |
22 | +++ cvs-1.11.23/lib/getline.h.old 2008-06-03 19:06:27.000000000 +0200 |
23 | @@ -11,9 +11,9 @@ |
24 | |
25 | #define GETLINE_NO_LIMIT -1 |
26 | |
27 | -int |
28 | +ssize_t |
29 | getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); |
30 | -int |
31 | +ssize_t |
32 | getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, |
33 | int limit)); |
34 | int |