Ticket #30378: patch-getline

File patch-getline, 679 bytes (added by DanielO (Daniel O'Connor), 13 years ago)
Line 
1--- lib/getline.c.orig  2011-07-26 09:06:04.000000000 +0930
2+++ lib/getline.c       2011-07-26 09:06:17.000000000 +0930
3@@ -155,7 +155,7 @@
4 }
5 
6 int
7-getline (lineptr, n, stream)
8+_getline (lineptr, n, stream)
9      char **lineptr;
10      size_t *n;
11      FILE *stream;
12--- lib/getline.h.orig  2011-07-26 09:06:08.000000000 +0930
13+++ lib/getline.h       2011-07-26 09:06:23.000000000 +0930
14@@ -12,7 +12,7 @@
15 #define GETLINE_NO_LIMIT -1
16 
17 int
18-  getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
19+  _getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
20 int
21   getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
22                          int limit));