diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-04-05 01:23:08 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-04-05 01:23:08 +0000 |
commit | b5a74d1ed37f690295bf2bd3c066899e575c6b9c (patch) | |
tree | 9b570babd4d8ed6e34cd00e85d971227b5a1906f /print | |
parent | Update WWW tag (diff) |
hopefully fix 5.x breakage by not using 'stderr' to initialize a global.
Notes
Notes:
svn path=/head/; revision=57335
Diffstat (limited to 'print')
-rw-r--r-- | print/ghostscript-gnu/files/patch-src:dviprlib.c | 23 | ||||
-rw-r--r-- | print/ghostscript7/files/patch-src:dviprlib.c | 23 |
2 files changed, 46 insertions, 0 deletions
diff --git a/print/ghostscript-gnu/files/patch-src:dviprlib.c b/print/ghostscript-gnu/files/patch-src:dviprlib.c new file mode 100644 index 000000000000..1fc25e484764 --- /dev/null +++ b/print/ghostscript-gnu/files/patch-src:dviprlib.c @@ -0,0 +1,23 @@ +--- src/dviprlib.c.orig Tue May 13 00:14:09 1997 ++++ src/dviprlib.c Thu Apr 4 03:18:57 2002 +@@ -1433,7 +1433,8 @@ + char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; + char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; + +-private FILE *dviprt_messagestream = stderr; ++private FILE *dviprt_messagestream; ++private int dviprt_messagestream_init; + + /*--- library functions ---*/ + int +@@ -1505,6 +1506,10 @@ + liblocal int + dviprt_printmessage(char *str,int len) + { ++ if (!dviprt_messagestream_init) { ++ dviprt_messagestream = stderr; ++ dviprt_messagestream_init = 1; ++ } + if (dviprt_messagestream && str) { + if (len >= 0) fwrite(str,len,1,dviprt_messagestream); + else fputs(str,dviprt_messagestream); diff --git a/print/ghostscript7/files/patch-src:dviprlib.c b/print/ghostscript7/files/patch-src:dviprlib.c new file mode 100644 index 000000000000..1fc25e484764 --- /dev/null +++ b/print/ghostscript7/files/patch-src:dviprlib.c @@ -0,0 +1,23 @@ +--- src/dviprlib.c.orig Tue May 13 00:14:09 1997 ++++ src/dviprlib.c Thu Apr 4 03:18:57 2002 +@@ -1433,7 +1433,8 @@ + char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; + char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; + +-private FILE *dviprt_messagestream = stderr; ++private FILE *dviprt_messagestream; ++private int dviprt_messagestream_init; + + /*--- library functions ---*/ + int +@@ -1505,6 +1506,10 @@ + liblocal int + dviprt_printmessage(char *str,int len) + { ++ if (!dviprt_messagestream_init) { ++ dviprt_messagestream = stderr; ++ dviprt_messagestream_init = 1; ++ } + if (dviprt_messagestream && str) { + if (len >= 0) fwrite(str,len,1,dviprt_messagestream); + else fputs(str,dviprt_messagestream); |