diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 04:01:42 +0800 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2002-05-16 04:01:42 +0800 |
commit | 666280d1f09f1ebcb716855c11b7d4efd507692a (patch) | |
tree | d1cacd4906e63bca6a7930b91ed8acaf6f00f825 /print/rtf2latex/files | |
parent | a9b8a60dd3ea0603f8c4a165a2303e5b962be843 (diff) | |
download | freebsd-ports-gnome-666280d1f09f1ebcb716855c11b7d4efd507692a.tar.gz freebsd-ports-gnome-666280d1f09f1ebcb716855c11b7d4efd507692a.tar.zst freebsd-ports-gnome-666280d1f09f1ebcb716855c11b7d4efd507692a.zip |
Fix building on -current
PR: 37969
Submitted by: Oliver Braun
Diffstat (limited to 'print/rtf2latex/files')
-rw-r--r-- | print/rtf2latex/files/patch-reader.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/print/rtf2latex/files/patch-reader.c b/print/rtf2latex/files/patch-reader.c new file mode 100644 index 000000000000..bf182c2f8ea7 --- /dev/null +++ b/print/rtf2latex/files/patch-reader.c @@ -0,0 +1,28 @@ +--- reader.c.orig Sun May 12 00:57:41 2002 ++++ reader.c Sun May 12 01:00:39 2002 +@@ -118,7 +118,7 @@ + static RTFStyle *styleList = (RTFStyle *) NULL; + + +-static FILE *rtffp = stdin; ++static FILE *rtffp = NULL; + + + /* +@@ -135,6 +135,7 @@ + RTFStyle *sp; + RTFStyleElt *eltList, *ep; + ++ rtffp = stdin; + /* initialize lookup table */ + LookupInit (); + +@@ -584,6 +585,8 @@ + { + int c; + ++ if (rtffp == NULL) ++ rtffp = stdin; + if ((c = getc (rtffp)) != EOF) + { + if (c & 0x80) |