summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-01-08 00:03:57 +0000
committerjoerg <joerg@pkgsrc.org>2006-01-08 00:03:57 +0000
commitf7b2b5170ca918dafb700a427c87cd5e2ce04e79 (patch)
tree5bc8977faba1eb898f43bb2c7ccd5c89e6897fd3 /print
parent7753bf059f88e46bebbc3e0cafa8b88f10dd02e9 (diff)
downloadpkgsrc-f7b2b5170ca918dafb700a427c87cd5e2ce04e79.tar.gz
ISO C says, stdin is not a valid rvalue on global scope. Move the init
into RTFInit, if rtffp is still NULL.
Diffstat (limited to 'print')
-rw-r--r--print/rtf2latex/distinfo3
-rw-r--r--print/rtf2latex/patches/patch-aa23
2 files changed, 25 insertions, 1 deletions
diff --git a/print/rtf2latex/distinfo b/print/rtf2latex/distinfo
index 5fa6e80a55a..d6889e026bf 100644
--- a/print/rtf2latex/distinfo
+++ b/print/rtf2latex/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 12:51:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2006/01/08 00:03:57 joerg Exp $
SHA1 (rtf2LaTeX.1.5.tar.gz) = dcf8c2ce49928bd38ce03aad1f5fda09381fd45e
RMD160 (rtf2LaTeX.1.5.tar.gz) = d319753192d890937606e77a75097f430e676684
Size (rtf2LaTeX.1.5.tar.gz) = 52075 bytes
+SHA1 (patch-aa) = 5e12460d669383082fcd625157231fd08607a9b6
diff --git a/print/rtf2latex/patches/patch-aa b/print/rtf2latex/patches/patch-aa
new file mode 100644
index 00000000000..0b5e9fbd40e
--- /dev/null
+++ b/print/rtf2latex/patches/patch-aa
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2006/01/08 00:03:57 joerg Exp $
+
+--- reader.c.orig 2006-01-07 23:52:57.000000000 +0000
++++ reader.c
+@@ -118,7 +118,7 @@ static RTFColor *colorList = (RTFColor *
+ static RTFStyle *styleList = (RTFStyle *) NULL;
+
+
+-static FILE *rtffp = stdin;
++static FILE *rtffp;
+
+
+ /*
+@@ -135,6 +135,9 @@ RTFFont *fp;
+ RTFStyle *sp;
+ RTFStyleElt *eltList, *ep;
+
++ if (rtffp == NULL)
++ rtffp = stdin;
++
+ /* initialize lookup table */
+ LookupInit ();
+