From 49051e7a4d67fe822f369f46972cb6f48fd48556 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 8 Jan 2006 00:03:57 +0000 Subject: ISO C says, stdin is not a valid rvalue on global scope. Move the init into RTFInit, if rtffp is still NULL. --- print/rtf2latex/distinfo | 3 ++- print/rtf2latex/patches/patch-aa | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 print/rtf2latex/patches/patch-aa (limited to 'print') 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 (); + -- cgit v1.2.3