pkgsrc/devel/scmcvs/patches/patch-lib_getline.c
ryoon 77b234d79a Fix PR pkg/45408.
Treat getine as like as getopt.

Thank you, obache@.
2011-09-27 12:43:20 +00:00

22 lines
509 B
C

$NetBSD: patch-lib_getline.c,v 1.2 2011/09/27 12:43:21 ryoon Exp $
* Avoid getline conflict
--- lib/getline.c.orig 2005-04-04 20:46:05.000000000 +0000
+++ lib/getline.c
@@ -154,6 +154,7 @@ getstr (lineptr, n, stream, terminator,
return ret;
}
+#ifndef HAVE_GETLINE
int
getline (lineptr, n, stream)
char **lineptr;
@@ -162,6 +163,7 @@ getline (lineptr, n, stream)
{
return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
}
+#endif
int
getline_safe (lineptr, n, stream, limit)