pkgsrc/devel/gcvs/patches/patch-cvsunix_lib_getline_h
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
463 B
Text

$NetBSD: patch-cvsunix_lib_getline_h,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.h~ 2011-10-02 02:15:27.000000000 +0000
+++ cvsunix/lib/getline.h
@@ -11,7 +11,7 @@
#define GETLINE_NO_LIMIT -1
-int
+ssize_t
getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
int
getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,