pkgsrc/devel/gcvs/patches/patch-common_getline_c
dholland 51bcb16241 As a sleazy hack to get this to build, patch the included gnu getline
(for some reason there are two separate copies of it) to match the
POSIX definition.

Fixing this "right" would be a lot of work and does not seem
worthwhile, especially since this package looks to be more or less
dead upstream and is probably a good candidate for removal.
2011-10-02 02:25:42 +00:00

16 lines
438 B
Text

$NetBSD: patch-common_getline_c,v 1.1 2011/10/02 02:25:42 dholland Exp $
hack this to match the new POSIX definition, as a sleazy way of making
it build again.
--- common/getline.c~ 2002-02-18 03:45:22.000000000 +0000
+++ common/getline.c
@@ -142,7 +142,7 @@ getstr (char **lineptr, size_t *n, FILE
return ret;
}
-int
+ssize_t
getline (char **lineptr, size_t *n, FILE *stream)
{
return getstr (lineptr, n, stream, '\n', 0);