(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.
16 lines
420 B
Text
16 lines
420 B
Text
$NetBSD: patch-cvsunix_lib_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.
|
|
|
|
--- cvsunix/lib/getline.c~ 2011-10-02 02:15:27.000000000 +0000
|
|
+++ cvsunix/lib/getline.c
|
|
@@ -153,7 +153,7 @@ getstr (lineptr, n, stream, terminator,
|
|
return ret;
|
|
}
|
|
|
|
-int
|
|
+ssize_t
|
|
getline (lineptr, n, stream)
|
|
char **lineptr;
|
|
size_t *n;
|