From c18ab79deb682f4448942535efeaca2d93fceecf Mon Sep 17 00:00:00 2001 From: minskim Date: Fri, 17 Jul 2009 06:58:51 +0000 Subject: Make metapost build on systems with native getline(). --- print/web2c/distinfo | 3 ++- print/web2c/patches/patch-av | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 print/web2c/patches/patch-av (limited to 'print') diff --git a/print/web2c/distinfo b/print/web2c/distinfo index 3a0d358cdb8..ae0d777ab64 100644 --- a/print/web2c/distinfo +++ b/print/web2c/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2009/07/17 06:55:14 minskim Exp $ +$NetBSD: distinfo,v 1.5 2009/07/17 06:58:51 minskim Exp $ SHA1 (texlive-20080816-source.tar.lzma) = 730986c628bd658b5062face9e400f61203d6b8d RMD160 (texlive-20080816-source.tar.lzma) = 629784b111c0d4bc9fac9f9131f63203d6e1dd38 @@ -24,3 +24,4 @@ SHA1 (patch-ar) = 58dcc0263b7347d7dfbf10370bcad3ed46849414 SHA1 (patch-as) = b676605ce6f599d75ef9076316f60a5679656a16 SHA1 (patch-at) = 590c83e0decf5603a75970e33d8028d794d920d2 SHA1 (patch-au) = acc255d4e4eacd960d4b9a9807ca4b0cff37d000 +SHA1 (patch-av) = 9b7272f47229daf1daccafdafbf201c34f8ef6d8 diff --git a/print/web2c/patches/patch-av b/print/web2c/patches/patch-av new file mode 100644 index 00000000000..43567ffc46b --- /dev/null +++ b/print/web2c/patches/patch-av @@ -0,0 +1,31 @@ +$NetBSD: patch-av,v 1.1 2009/07/17 06:58:52 minskim Exp $ + +--- mpware/mpto.c.orig 2008-04-11 09:33:03.000000000 -0700 ++++ mpware/mpto.c +@@ -97,7 +97,7 @@ usage(char *progn) + } + + char * +-getline(void) ++mp_getline(void) + { /* returns NULL on EOF or error, otherwise buf */ + int c; + unsigned loc = 0; +@@ -302,7 +302,7 @@ copytex(void) + char *res = NULL; + do { + if (*aa == 0) +- if ((aa = getline()) == NULL) ++ if ((aa = mp_getline()) == NULL) + err("btex section does not end"); + + if (getbta(aa) && *tt == 'e') { +@@ -483,7 +483,7 @@ Current maintainer: Taco Hoekwater.\n"); + postverb = troff_postverb; + } + printf("%s", predoc); +- while (getline() != NULL) ++ while (mp_getline() != NULL) + do_line(); + printf("%s", postdoc); + exit(0); -- cgit v1.2.3