diff options
author | minskim <minskim> | 2009-07-17 06:58:51 +0000 |
---|---|---|
committer | minskim <minskim> | 2009-07-17 06:58:51 +0000 |
commit | 42e903cd8f95b9fbdebf205a509fa74b4f777f47 (patch) | |
tree | 25788aeb5b434bb52c70b8b4b71f0175362f108b /print/web2c/patches | |
parent | f1eb9394d069d402b056c2ba46d39ad9e6705a9b (diff) | |
download | pkgsrc-42e903cd8f95b9fbdebf205a509fa74b4f777f47.tar.gz |
Make metapost build on systems with native getline().
Diffstat (limited to 'print/web2c/patches')
-rw-r--r-- | print/web2c/patches/patch-av | 31 |
1 files changed, 31 insertions, 0 deletions
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); |