From 3c484b68bcf1d3343921d6bfdbf029036e683989 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 1 Oct 2011 12:08:55 +0000 Subject: patch getline to avoid conflict with new standard getline --- textproc/uni2ascii/distinfo | 3 ++- textproc/uni2ascii/patches/patch-ascii2uni_c | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 textproc/uni2ascii/patches/patch-ascii2uni_c (limited to 'textproc/uni2ascii') diff --git a/textproc/uni2ascii/distinfo b/textproc/uni2ascii/distinfo index 00d4a7e5b44..4495b52dd51 100644 --- a/textproc/uni2ascii/distinfo +++ b/textproc/uni2ascii/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2010/05/17 22:27:26 morr Exp $ +$NetBSD: distinfo,v 1.2 2011/10/01 12:08:55 dholland Exp $ SHA1 (uni2ascii-4.14.tar.bz2) = efe31a88499544f60a19994556e6bdea0e0f95be RMD160 (uni2ascii-4.14.tar.bz2) = fdd9cdd79c05d82ddfece91c384852aea5f79f0b Size (uni2ascii-4.14.tar.bz2) = 120087 bytes +SHA1 (patch-ascii2uni_c) = fea75b8677d335709039b55fe1d79049f181b88e diff --git a/textproc/uni2ascii/patches/patch-ascii2uni_c b/textproc/uni2ascii/patches/patch-ascii2uni_c new file mode 100644 index 00000000000..af67d41a18e --- /dev/null +++ b/textproc/uni2ascii/patches/patch-ascii2uni_c @@ -0,0 +1,25 @@ +$NetBSD: patch-ascii2uni_c,v 1.1 2011/10/01 12:08:55 dholland Exp $ + +avoid conflict with new posix getline (usage may be compatible, might +be worth checking sometime) + +--- ascii2uni.c~ 2009-08-05 03:08:52.000000000 +0000 ++++ ascii2uni.c +@@ -463,7 +463,7 @@ int main (int ac, char *av[]) + fprintf(stderr,"Failed to allocate buffer for input line.\n"); + exit(2); + } +- while ((read = getline(&lbuf, &len, infp)) != -1) { ++ while ((read = get_line(&lbuf, &len, infp)) != -1) { + AddNewlineP = 1; + LineNo++; + last = read - 1; +@@ -848,7 +848,7 @@ getstr (lineptr, n, stream, terminator, + } + + int +-getline (lineptr, n, stream) ++get_line (lineptr, n, stream) + char **lineptr; + size_t *n; + FILE *stream; -- cgit v1.2.3