Browse Source

rename getline to avoid conflict

Waldemar Brodkorb 15 years ago
parent
commit
e2feaef43e
2 changed files with 22 additions and 0 deletions
  1. 11 0
      package/cvs/patches/patch-lib_getline_c
  2. 11 0
      package/cvs/patches/patch-lib_getline_h

+ 11 - 0
package/cvs/patches/patch-lib_getline_c

@@ -0,0 +1,11 @@
+--- cvs-1.11.23.orig/lib/getline.c	2005-04-04 22:46:05.000000000 +0200
++++ cvs-1.11.23/lib/getline.c	2010-03-07 20:38:26.117286460 +0100
+@@ -155,7 +155,7 @@ getstr (lineptr, n, stream, terminator, 
+ }
+ 
+ int
+-getline (lineptr, n, stream)
++get_line (lineptr, n, stream)
+      char **lineptr;
+      size_t *n;
+      FILE *stream;

+ 11 - 0
package/cvs/patches/patch-lib_getline_h

@@ -0,0 +1,11 @@
+--- cvs-1.11.23.orig/lib/getline.h	2005-04-04 22:46:05.000000000 +0200
++++ cvs-1.11.23/lib/getline.h	2010-03-07 20:38:36.898630307 +0100
+@@ -12,7 +12,7 @@
+ #define GETLINE_NO_LIMIT -1
+ 
+ int
+-  getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
++  get_line __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
+ int
+   getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
+                          int limit));